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 branchgit branch//show the changes filesgit status//create a branchgit checkout -b <branch-name>//all files add git git add .//commit your staged content as a new commit snapshotgit commit -m "write your message"//Transmit local branch commits to the remote repository branchgit push origin <branch-name>



Comments
Post a Comment