git-remote

How can I find the location of origin/master in git, and how do I change it?

南楼画角 提交于 2019-11-27 09:57:23
I'm a Git newbie. I recently moved a Rails project from Subversion to Git. I followed the tutorial here: http://www.simplisticcomplexity.com/2008/03/05/cleanly-migrate-your-subversion-repository-to-a-git-repository/ I am also using unfuddle.com to store my code. I make changes on my Mac laptop on the train to/from work and then push them to unfuddle when I have a network connection using the following command: git push unfuddle master I use Capistrano for deployments and pull code from the unfuddle repository using the master branch. Lately I've noticed the following message when I run "git

How to view remote Git revision on Heroku

▼魔方 西西 提交于 2019-11-27 09:10:40
问题 For deploying to Heroku, I use git push heroku master . But how do I see which revision I pushed up to heroku? (I'm often in doubt if I pushed the recent version up) For those not familiar with it, Heroku's create script generates a remote git repository that you push to. Upon push, the code is deployed magically. Heroku adds a remote repository to the local one in the form: $ git remote add heroku git@heroku.com:appname.git More info in Heroku's manual "Deploying with Git" Question is: How

Git push to live server

与世无争的帅哥 提交于 2019-11-27 09:09:55
问题 We have a website that has all its PHP/HTML/JS/CSS/etc files stored in a Git repository. We currently have 3 types of computers (or use cases) for the repository. Local developer: pull latest changes, make changes, commit to local repo, push to master server Master server: central repository, all changes get pushed to the master server Web server: changes are pulled down from the master server when deploying the website So currently we: local: git push origin master local: password: ********

git remote prune – didn't show as many pruned branches as I expected

耗尽温柔 提交于 2019-11-27 09:09:03
问题 From the man page: Deletes all stale tracking branches under <name>. These stale branches have already been removed from the remote repository referenced by <name>, but are still locally available in "remotes/<name>". So I removed a bunch of branches using git push origin :staleStuff and then ran git remote prune origin However, only one single local branch was pruned. Some of these branches were created by me, some by co-workers. Does this indicate that I wasn't tracking those branches

Git push branch from one remote to another?

送分小仙女□ 提交于 2019-11-27 09:00:41
问题 I have the following remotes set up: $ git remote korg rorg And the following branches: $ git branch -a * (no branch) remotes/korg/gingerbread remotes/korg/gingerbread-release remotes/korg/honeycomb remotes/korg/honeycomb-mr1-release remotes/korg/master remotes/m/android-2.3.3_r1 -> refs/tags/android-2.3.3_r1a remotes/m/gingerbread -> korg/gingerbread Now I wish to push all the remote branches from korg to the rorg remote. How do I do that? Preferably without making a local branch for each

Why am I merging “remote-tracking branch 'origin/develop' into develop”?

为君一笑 提交于 2019-11-27 08:55:34
问题 I'm the only one in my organization who's making commits with the following message: Merge remote-tracking branch 'origin/develop' into develop Not sure what I'm doing to cause them, but I'd like to stop. What command am I issuing to create this commit, and what is the proper command I ought to be using to not produce it? 回答1: git pull is probably creating the commit. If you make a local commit and then run git pull after someone else pushes a commit up to the repository, Git downloads the

Git push error: “origin does not appear to be a git repository”

笑着哭i 提交于 2019-11-27 06:47:36
I am following the instructions given here to create a Git repository. All went well until the last line: $ git push -u origin master fatal: 'origin' does not appear to be a git repository fatal: The remote end hung up unexpectedly I'm using git version 1.7.11.3 on OS X 10.6.8 $ git remote -v returns nothing Config file for the repository: [core] repositoryformatversion = 0 filemode = true bare = false logallrefupdates = true ignorecase = true I've had to open sudoers file using sudo visudo command and add the following to it (under # User privilege specification): git ALL=(ALL) ALL. Now if I

Differences between git remote update and fetch?

不羁岁月 提交于 2019-11-27 06:08:58
Is git remote update the equivalent of git fetch ? UPDATE: more information! I should have done this from the start: I grepped the Git release notes in Git's Git repo (so meta!) grep --color=always -R -C30 fetch Documentation/RelNotes/* | less Then I did a less search for --all , and this is what I found under the release notes for Git version 1.6.6 : git fetch learned --all and --multiple options, to run fetch from many repositories, and --prune option to remove remote tracking branches that went stale. These make git remote update and git remote prune less necessary (there is no plan to

How to update a git clone --mirror?

﹥>﹥吖頭↗ 提交于 2019-11-27 05:49:36
I have created a git repository to mirror a live site (which is a non-bare git repository): git clone --mirror ssh://user@example.com/path/to/repo Now, to keep this mirror clone updated with all changes from its remote origin, which command or commands I must use? I'd like to keep everything updated: commits, refs, hooks, branches, etc. Thanks! This is the command that you need to execute on the mirror: git remote update J. Bruni Regarding commits, refs, branches and " et cetera ", Magnus answer just works ( git remote update ). But unfortunately there is no way to clone / mirror / update the

How to pull remote branch from somebody else's repo

拟墨画扇 提交于 2019-11-27 05:44:42
I've got a project hosted on GitHub which somebody has forked. On their fork, they've created a new branch "foo" and made some changes. How do I pull their "foo" into a new branch also named "foo" in my repo? I understand they could submit a pull request to me, but I'd like to initiate this process myself. Assume the following: Because they forked my project, both our repos share the same 'history' Although GitHub shows their project was forked from mine, my local repository doesn't have any references to this person's project. Do I need to add theirs as a remote? I don't have a branch called