in Software Development

Day day Git… Introduce yourself to Git:-
git config –global user.name “Joey Joejoe” git config –global user.email “[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
Source: https://wiki.spheredev.org/index.php/Git_for_the_lazy
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  

Write a Comment

Comment

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