MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerAnimemes/comments/fxnvw2/source_version_controls/fmw9iy3/
r/ProgrammerAnimemes • u/Ristellise • Apr 09 '20
40 comments sorted by
View all comments
Show parent comment
5
git add -A will probably do a better job of what you're intending to do in all cases than git add *. * has the risk of not picking up dot files and it will only work as you intend for it to work if you're at the root of the repo.
git add -A
git add *
*
1 u/MonokelPinguin Apr 09 '20 Or just git add . 2 u/bucket3432 Apr 09 '20 . is better than * because it'll pick up dot files, but it still won't add any files that are outside of the current directory. 1 u/Tobiky Apr 11 '20 Thank you kind sir, I appreciate this a lot!
1
Or just git add .
git add .
2 u/bucket3432 Apr 09 '20 . is better than * because it'll pick up dot files, but it still won't add any files that are outside of the current directory.
2
. is better than * because it'll pick up dot files, but it still won't add any files that are outside of the current directory.
.
Thank you kind sir, I appreciate this a lot!
View all comments
Show parent comment
5
u/bucket3432 Apr 09 '20
git add -Awill probably do a better job of what you're intending to do in all cases thangit add *.*has the risk of not picking up dot files and it will only work as you intend for it to work if you're at the root of the repo.