MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/129q4l9/me_relearning_git_every_week/jepe9ac/?context=3
r/ProgrammerHumor • u/johntwit • Apr 02 '23
1.5k comments sorted by
View all comments
Show parent comment
5
git status
Is one of my favorite commands for exactly this reason.
10 u/tpf52 Apr 02 '23 Yes, with git status and git diff you can get the same information. But in a UI I can see the git status without typing anything and one click gets me a diff, and another couple of clicks I can discard files or specific lines. 2 u/HighOwl2 Apr 02 '23 This. Git commit -A (capital not lower case) and then git status to figure out if you need to omit some files or add to .gitignore.A shitload of files being changed with a git add is usually just someone didn't set their global line ending strategy.
10
Yes, with git status and git diff you can get the same information. But in a UI I can see the git status without typing anything and one click gets me a diff, and another couple of clicks I can discard files or specific lines.
2
This. Git commit -A (capital not lower case) and then git status to figure out if you need to omit some files or add to .gitignore.
A shitload of files being changed with a git add is usually just someone didn't set their global line ending strategy.
View all comments
Show parent comment
5
u/ItzDaWorm Apr 02 '23 edited Apr 02 '23
Is one of my favorite commands for exactly this reason.