I’m new to version control and git. I’m confused by git push [alias] [branch].
What is the difference between an alias and branch?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
[alias]is your Primary remote repository‘s alias. And[branch]is your branch name of the project.For example, I have a repo(let’s say, yourRepo) on github, and its primary remote repository is
git@github.com:user/yourRepo.git.You’ll often do
to add it to your local repo. Then you can push your update to github by
Here
originis often used as alias forprimary remote repository.There’re still some other type of alias for git. For example, you can do
to make
comalias tocommit. The alias here is not the[alias]in your question. I just mentioned it by the way. Maybe you’ll like it. 😉