Questions tagged [git-remote]

git-remote is a command used to manage the set of tracked remote repositories.

git-remote is a command used to manage the set of tracked remote repositories for a git repository. It allows to setup, remove and edit the set of repositories ("remotes") whose branches are tracked.

See the man page.

930 questions
11
votes
1 answer

git: manage multiple remotes in a submodule

My team uses a publicly available github hosted project as a submodule in our main project. We would like to manage our own patches against that project, without pushing upstream, but then we can't share those patches unless we have a mirror where…
Irfy
  • 9,323
  • 1
  • 45
  • 67
11
votes
9 answers

Cannot remove git repository completely

I have been using git on windows-msysgit. Whenever I try to remove a repository completely either using explorer or using $ git rm -rf ptp/ fatal: Not a git repository (or any of the parent directories): .git it errors out "The data present in the…
Aleyna
  • 1,857
  • 4
  • 20
  • 27
11
votes
1 answer

Cannot push to heroku after adding a remote heroku repo to my existing local repo

Here is the scenario: 1) My project partner and I were working on a Ruby on Rails app together using github as our code repo. 2) The app is under her github account and she had added me as a collaborator 3) She deployed to Heroku and added me as a…
Sedona
  • 141
  • 1
  • 10
11
votes
3 answers

How do I get all refs that point to a commit in git?

Is there any way to get a list of refs (including tags, branches, and remotes) that point to a particular commit in git?
dbkaplun
  • 3,407
  • 2
  • 26
  • 33
10
votes
1 answer

How do I push a Git tag in Visual Studio Code?

Does anyone know how to push a created tag to the remote repository using Visual Studio Code?
orschiro
  • 19,847
  • 19
  • 64
  • 95
10
votes
9 answers

AWS CodeCommit with git-remote-codecommit

Im using windows and im trying to use git-remote-codecommit. steps for HTTPS Connections to AWS CodeCommit with git-remote-codecommit. https://docs.aws.amazon.com/codecommit/latest/userguide/setting-up-git-remote-codecommit.html While fetching ,…
unamen
  • 193
  • 1
  • 3
  • 15
10
votes
2 answers

git: disable automatic pushing to a certain remote branch

When I run git push, my local branch some_branch is pushed to a remote branch some_remote\some_branch. When I run git remote show some_remote I get: Local refs configured for 'git push': [cut] some_branch pushes to some_branch I don't…
lampak
  • 890
  • 1
  • 9
  • 21
10
votes
1 answer

Push Git branches directly into a live server directory so files are seen live

How can I set up remote directories in Git where I can locally push a stage branch to the remote and see the live changes on a staging server, like stage.example.com? The notion I have (part of why I am moving away from SVN) is that I can maintain…
Jannis
  • 17,025
  • 18
  • 62
  • 75
10
votes
3 answers

Using git to publish to a website

I used this guide to use git to autopublish my changes on my website when I push to my remote origin git repository: http://www.lwp.ca/james/2010/03/using-git-to-manage-online-website-projects/ Here's my /hooks/post-update file: cd…
Citizen
  • 12,430
  • 26
  • 76
  • 117
10
votes
3 answers

Forcing Remote Repo to Compress (GC) with Git

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…
jocull
  • 20,008
  • 22
  • 105
  • 149
10
votes
2 answers

GIT: fatal: 'master' does not appear to be a git repository

I was pushing my master branch to my GIT repo and go this error fatal: 'master' does not appear to be a git repository On the advice of a stack question I typed git remote -v and got heroku https://git.heroku.com/peaceful-cove-8372.git…
GhostRider
  • 2,109
  • 7
  • 35
  • 53
10
votes
3 answers

Get remote repository Git

I am almost newby in Git and just read Git book from the official site. I try understand difference between next cases. git init Project git remote add Project [some-url] and git clone [some-url] And what is a preferable approach?
Ray
  • 1,788
  • 7
  • 55
  • 92
9
votes
2 answers

Git branch shows deleted remote branch

If I check the list of the branches on my remote repository, I see only the ones that are supposed to exist, but if I check locally using: git branch -a I still see the ones deleted using the delete this branch feature that Github propose after…
Alberto Sinigaglia
  • 12,097
  • 2
  • 20
  • 48
9
votes
3 answers

Which characters are illegal within a git remote name?

Which characters are illegal within a git remote name ? I didn't found it the git documentation.
yacine
  • 151
  • 1
  • 4
9
votes
2 answers

Prevent git to push to wrong remote

I have a local branch "gh" that I always want to push to my account on github; I also have another local branch "lab" that I always want to push to my organization's account on github. I have setup two remotes (gh and lab) for that. $ git remote…
Ninguém
  • 93
  • 8