Skip to content

Instantly share code, notes, and snippets.

View filipevarjao's full-sized avatar

Filipe Varjão filipevarjao

View GitHub Profile
git checkout long-feature-branch
git rebase master
git rebase -i HEAD~3
git checkout master
git merge long-feature-branch
git log
git add .
git commit -m "last comit"
git rebase -i HEAD~4
git log
git rebase -i HEAD~2
reword ...
git checkout new-feature
git log
or
gitk --all
git checkout master
git checkout feature
git merge master
git reset --hard HEAD~1
git status
gedit file1
git add file1
git commit -m "new commit, new branch"
git checkout -b my_branch
git checkout my_branch
git checkout -b test_code