in Software Development

Day day Git… Introduce yourself to Git:-
git config –global “Joey Joejoe” git config –global “[email protected]
Haven’t committed yet, but don’t want to save the changes? You can throw them away:-
git reset –hard
You can also do it for individual files, but it’s a bit different:-
git checkout myfile.txt
Messed up the commit message? This will let you re-enter it:-
git commit –amend
Forgot something in your last commit? That’s easy to fix.
git reset –soft HEAD^
Add that stuff you forgot:-
git add forgot.txt these.txt
Then write over the last commit:-
git commit

Write a Comment


This site uses Akismet to reduce spam. Learn how your comment data is processed.