Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does the git option remote.unfuddle.push do?

Tags:

git

What changes will be made if below line is set?

git config remote.unfuddle.push refs/heads/master:refs/heads/master

like image 948
user482594 Avatar asked Aug 14 '11 13:08

user482594


People also ask

What is the push command in git?

The git push command is used to upload local repository content to a remote repository. Pushing is how you transfer commits from your local repository to a remote repo. It's the counterpart to git fetch , but whereas fetching imports commits to local branches, pushing exports commits to remote branches.

How do I push a remote code to a git repository?

To push the commit from the local repo to your remote repositories, run git push -u remote-name branch-name where remote-name is the nickname the local repo uses for the remote repositories and branch-name is the name of the branch to push to the repository. You only have to use the -u option the first time you push.

How do I push changes to a remote branch?

Push a new Git branch to a remote repo Clone the remote Git repo locally. Create a new branch with the branch, switch or checkout commands. Perform a git push with the –set-upstream option to set the remote repo for the new branch. Continue to perform Git commits locally on the new branch.

What is git push origin master?

Origin is simply the name given to any remote repository available on GitHub. Whenever we need to push the changes to a remote repository, we use git push along with the remote repository “origin” and “master” branches. The term used is “git push origin master“.


1 Answers

It will configure your current repository (use the --global switch to perform the config for your current user account). It tells git, that for the remote unfuddle it should only push the master branch.

So git push unfuddle will only push master to the remote repository, even though other branches may exist and might have been updated (and thus pushed with the default configuration)

like image 101
knittl Avatar answered Sep 21 '22 16:09

knittl