GIT
Commandes GIT utiles
Create commit
git commit -a -m “Message du commit”
Push commit
git push origin staging
Create branch (and switch to it)
git checkout -b new_branch
Merge branches
# switch to "staging" branch
git checkout staging
# merge "new_branch" to "staging"
git merge new_branch
git push origin staging
Delete branch
git branch -d new_branch
Move last commit to another branch
git branch newbranch
# Create a new branch, saving the desired commits
git reset --hard HEAD~3
# Move master back by 3 commits (GONE from master)
git checkout newbranch
Mis à jour