Questions tagged [git-push]

Pushes the changes from a local Git repo to remote

git push is used to push the data and branch changes from your local Git repository to remote.

Popular questions

See also

References

$ git push --help
1705 questions
0
votes
1 answer

Is there a way to push to more than one remote Git branch at the same time?

In my local repo's .git/config I have [remote "public"] url = https://github.com/rax/somerepo.git fetch = +refs/heads/*:refs/remotes/public/* [branch "master"] remote = public merge = refs/heads/master [remote…
orome
  • 45,163
  • 57
  • 202
  • 418
0
votes
1 answer

Can git push.default overwrite "dst"?

push.default Defines the action git push should take if no refspec is explicitly given. But is there a situation in which using one of it's possible value cause non-fast-forward update and overwriting the "dst" of push?
hasanghaforian
  • 13,858
  • 11
  • 76
  • 167
0
votes
2 answers

Unable to push due to unstructured comment

I have a pushed commit in my feature branch which is not structured as per enforced policy. Now when I try to merge that branch into develop and push it, its giving me following error. I have tried to amend the comment in the actual commit but it…
0
votes
1 answer

How to track sub-directories that change accurately with git

I am having a bit of difficulty picking up git. While tracking and committing text files is easy, every time I add a Visual Studio project folder to a repository, git throws this (modified content) status at me and I can not get it to add the new…
Perplexing Pies
  • 123
  • 1
  • 1
  • 9
0
votes
0 answers

Git: Pushed changes are being stashed as deleted

We use local virtual development servers, which we access through mounted volumes to develop our PHP applications. When working remotely through VPN , this setup is slow. I cloned the project from my mounted volume into my local drive, which is on…
0pen5pace
  • 11
  • 4
0
votes
3 answers

Git Push Errors when pushing to Github

I have been tirelessly trying to push a file to Github from Git. From incomplete loading processes to duplicate files--I need some serious help trying to rectify this issue. The following are the error messages received: $ git push origin…
0
votes
1 answer

Cannot deploy Rails application on Heroku

I've built a Rails app which I want to deploy on heroku. I can run the web application on my local machine. When I type the command : git push heroku master I get the following error message: git push heroku master ssh: connect to host heruko.com…
Pracede
  • 4,226
  • 16
  • 65
  • 110
0
votes
0 answers

Git Commits, Pushes and Files overwrite

I'm working with two branches | BranchOne and BrancheTwo My friend is working on BranchThree. My friend has made a lot of commits, I can see the commits on remote repository but the files have not been replaced. To show the commits on the…
PlayHardGoPro
  • 2,791
  • 10
  • 51
  • 90
0
votes
2 answers

Git adding duplicate files into the repo

I have this file called readme.html in my git Repo. Its been there since 10 months, Have not touched it. Today I worked with other files and did a git add --all, committed and pushed the new version. The readme.html was not changed but I have…
shreshta bm
  • 304
  • 4
  • 11
0
votes
1 answer

How see pending push on git?

How can I see my pending push using line command after to do several git commit? I have tried git status but this one only shows information about pending commit or untracked files.
Juan Reina Pascual
  • 3,988
  • 7
  • 21
  • 34
0
votes
1 answer

Undo a git merge when it has been pushed

How can I undo a merge when I have already pushed to master after merge? Here are my steps: git add -A git commit -m "some message" git fetch origin master:master git rebase master (resolve merge conflicts) git push -f origin my local branch I…
Maryam
  • 1,417
  • 4
  • 19
  • 33
0
votes
2 answers

What is the sequence of commit merge pull push?

I have cloned from a remote git server. I have created a new branch (for example dev) from my local master and doing some work on the code. I do these works to send my changes to remote repo. Are they in right sequence? commit changes on dev…
hd.
  • 17,596
  • 46
  • 115
  • 165
0
votes
2 answers

How to commit after removing a directory from GIT

Several posts talk about removing a file or directory from GIT - but they don't go as far as explaining how to PUSH those changes into the main repository. For example, this works just fine to remove the directory but when I try to PUSH this change…
Luther Baker
  • 7,236
  • 13
  • 46
  • 64
0
votes
1 answer

Windows 8 Git Bash - Command Push - Putty cache

I have installed Git on Windows 8. The SSH key is uploaded to bitbucket. Git works well (git status, git commit, etc.) When I do a pull, git tells me: $ Git push origin --all -u The server's host key is not cached in the registry. You have no …
Javier
  • 395
  • 3
  • 18
0
votes
1 answer

How to undo git commits locally and on remote without losing changes

We have a project in remote repository. Recently I created a new branch "Feature7" and made huge changes and committed twice and also pushed twice. Fortunately, no one pulled from that branch. After that there have been lots of commit and push in…
user1670773