Tuesday, 27 February 2018

git commands

git add --all
git commit -m"message"
git push

git add 
git stash
git checkout branch
git stash pop
then move to the required branch and fire git stash pop.
git rebase

git rebase develop then put your branch name.



https://stackoverflow.com/questions/1783405/how-do-i-check-out-a-remote-git-branch
git fetch
git checkout test
Rename local branch name

git branch -m new-name

If you are on a different branch:
1
git branch -m old-name new-name
https://multiplestates.wordpress.com/2015/02/05/rename-a-local-and-remote-branch-in-git/

No comments:

Post a Comment