Git Basic Commands (Useful) :
![]() |
some basic command for git |
How to Push Your Code?
To push your code
in
another branch instead of master,
first you need to create a branch and
then
push it.
//show
current branch
git branch
//show
the changes files
git status
//create
a branch
git checkout -b <branch-name>
//all
files add git
git add .
//commit
your staged content as a new commit snapshot
git commit -m
"write your message"
//Transmit
local
branch commits to the remote repository branch
git push origin <branch-name>
Comments
Post a Comment