Skip to main content

https://bitbucket.org . GIT COMMANDS

git status
git add .
git add xyx.php
git commit -m"changes done"
git push


git config --global --edit
git commit --amend --reset-author

 git push --set-upstream origin master


GIT 
To create a new branch
git checkout -b automon_115
git status
git branch
git push -u origin automon_115
git checkout master
git diff


To create a branch first time-   >.   git checkout -b cmdb_120

Comments

Popular posts from this blog

GIT command

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