Git Commands
1. Get git config details
git config --global
2. Checkout commit before the last commit
git checkout HEAD~1
3. To uncommit the last 3 commits without losing the changes
git reset HEAD~3
4. Hard reset
git reset --hard HEAD~3
5. To look changes in the last 3 commit
git diff HEAD~3
6. Pull from master origin
git pull origin master
7. Commit into git
git commit -m "commit message"
Comments
Post a Comment