https://kbroman.org/github_tutorial/pages/branching.html
Note:- Always get pull request before working on any branch
git pull branch name or git pull origin branch name
To commit code
git commit -m"comment for changes"
To push the code
git push origin staging
To hold the branch in the same state
git stash
To get the stashed branch in normal mode
git stash pop
If code conflict during git command or reverting conflict occur while git pull or branch chekout
git reset -hard HEAD
To get in working branch or switch to another branch
git checkout staging
To create a new branch
git checkout -b branch name
Note:- Always get pull request before working on any branch
git pull branch name or git pull origin branch name
To commit code
git commit -m"comment for changes"
To push the code
git push origin staging
To hold the branch in the same state
git stash
To get the stashed branch in normal mode
git stash pop
If code conflict during git command or reverting conflict occur while git pull or branch chekout
git reset -hard HEAD
To get in working branch or switch to another branch
git checkout staging
To create a new branch
git checkout -b branch name
Comments
Post a Comment