git-remote

Git Tracking Upstream

假如想象 提交于 2019-11-29 09:39:20
问题 I am working on a project and I have a central git repo. This project is a skeleton to be a baseline for a number of forks. Is it possible to configure my local working repository for a fork to track the central for the project as origin and track the skeleton's master as a separate branch named upstream tracking the master of the skeleton to cherry pick changes to the skeleton? I guess I want my workflow to be something like: Create Skeleton >> Fork Skeleton >> Skeleton Pulls Changes from

Why can't git resolve the hostname when I push to a valid SSH address?

一世执手 提交于 2019-11-29 07:20:57
I am deploying an app on Heroku so I created a Heroku app from a repo and then did git push heroku master . When I do this it keeps giving me the error: ! Your key with fingerprint xxx is not authorized to access heroku-app. fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. I tried various things with changing my SSH keys including deleting them all and creating new ones. Still it gives me the same error. I have added the key to Heroku. Then I tried running ssh -vT git@heroku.com:heroku-app.git and the result was:

How to make git repo remember all remotes?

依然范特西╮ 提交于 2019-11-29 06:51:18
问题 I have a git repo that is a fork of another repo. As a rule I will normally add a remote called upstream, which is the original repo I forked from. $ git remote -v origin git@github.com:skela/awesomeproject.git (fetch) origin git@github.com:skela/awesomeproject.git (push) upstream git://github.com/bob/awesomeproject.git (fetch) upstream git://github.com/bob/awesomeproject.git (push) Is there any way to have this additional remote persist across clones? Say I delete my local repository and do

Forcing Remote Repo to Compress (GC) with Git

不羁的心 提交于 2019-11-29 04:02:29
I'm using Git to version a series of binary files. They compress pretty well, but my central repos do not seem to be compressing when I push to them. They're eating up a decent amount of my quota, so I was looking to see if there was a way to force the remote repo to do a GC. Is this possible? I'm working on Project Locker so I don't believe I have SSH access to go in and GC the repo myself. Any ideas? Thanks. If you can't run git gc yourself, you're going to have to trick it into running automatically. You won't have quite such full control over it then, but you should at least be able to get

Git create remote repository on push

醉酒当歌 提交于 2019-11-29 00:39:36
问题 I have been trying to figure this one out but I am having a hard time doing so. I am currently working on an open source project that requires me to allow a user to push to remote repository without it already existing there. I want to avoid manually logging in to a server and running git init or git init --bare . For obvious reasons, I get the following error when trying to push my local repository to a path that doesn't point to an existing repository on the remote server: fatal: '/var

git rebase onto remote updates

孤街浪徒 提交于 2019-11-28 17:13:10
问题 I work with a small team that uses git for source code management. Recently, we have been doing topic branches to keep track of features then merging them into master locally then pushing them to a central git repository on a remote server. This works great when no changes have been made in master: I create my topic branch, commit it, merge it into master, then push. Hooray. However, if someone has pushed to origin before I do, my commits are not fast-forward. Thus a merge commit ensues. This

How to view remote Git revision on Heroku

假如想象 提交于 2019-11-28 15:24:44
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 can I see latest version in Heroku repository? If you've just pushed and want to make sure you're up-to

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

陌路散爱 提交于 2019-11-28 15:18:52
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 correctly in the first place? When you use git push origin :staleStuff , it automatically removes origin

Git push branch from one remote to another?

两盒软妹~` 提交于 2019-11-28 15:08:44
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 first, if that is avoidable. A quick test making some temporary repositories shows you can construct a

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

强颜欢笑 提交于 2019-11-28 14:55:21
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? Richard Hansen 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 other developer's commit and then merges it into your local branch. How to avoid these merge