git push in a new branch 1

git push in a new branch

git push -u origin branchName

Here is what the above code is Doing:
1. git add .
– This adds all the files in the current directory to the staging area.
2. git commit -m “message”
– This commits the files in the staging area to the local repository.
3. git push -u origin branchName
– This pushes the files in the local repository to the remote repository.

Similar Posts