Questions tagged as 'git-push'

2
answers

How to create my own Git server?

I'm trying to work with Git and some problems arise, the scheme is as follows: I have two PCs in my house, one I want as a server, to host my projects and the other I want to clone these projects. The problem arises when cloning. The two PC...
asked by 02.02.2016 / 04:58
1
answer

How do I edit an incorrect message in a git push?

I wrote something I did not want in the commit comment. git commit -m "comentario indeseado" git push How can I change or update the message? Eye, I've already pushed and I want to remove the message in the repository as well. Is i...
asked by 26.01.2016 / 18:00
3
answers

Return to previous commit

I work in a branch called master2 , the issue is that I made small changes in 1 file and when I tried to upload them, I made an error and I did git pull origin master and when doing push I found almost all the files in the re...
asked by 29.12.2016 / 12:04
1
answer

What is the difference between --force and --force-with-lease in git?

In git when doing a push if the local and remote branches do not agree, it is necessary to do a force push (although it is not well seen to do a force push ). In git there are two options for this option --force and op...
asked by 19.06.2017 / 16:22
1
answer

Delete a Git branch both locally and remotely

   Original question: Delete a Git branch both locally and remotely by Matthew Rankin I want to delete a branch both locally and at the branch of my remote project on Github. Deleted local branch successfully $ git branch -D bugfix...
asked by 23.12.2015 / 23:00
2
answers

Hot fix between two remote git

I have two remote git repositories, one is test and the other is production git remote -v produccion https://[email protected]/deploy/pr1.git (fetch) produccion https://[email protected]/deploy/pr1.git (push) test https:/...
asked by 17.05.2017 / 22:32
1
answer

fatal: The current branch NOMBRERAMA has not upstream branch

I am doing a game and I corrected some bugs in a branch that I created especially for it called "FixBugs", I made a commit in this branch when I already managed to correct them. But I find the following message when I want to do the push:   ...
asked by 13.12.2018 / 15:03
1
answer

Error updating my remote repository in Git hub

I have the following error when updating my remote repository to git hub C:\xampp\htdocs\mvc>git push remote: Permission to otrousuario/mvc.git denied to usuario. fatal: unable to access 'https://github.com/otrousuario/mvc.git/': The req...
asked by 14.10.2016 / 04:13
1
answer

What is the difference between $ git push -u origin master and $ git push origin master?

What is the difference in using the -u flag when I do $git push to upload my local repository to a remote one? I see they do the same, both $git push origin master as $git push -u origin master I read this manual b...
asked by 21.10.2017 / 23:05
1
answer

Doubt about git and create branches

I have a git project where I have the develop and master branch. I created a new branch with the command "git checkout -b feature / feature_test" Then I enter this branch and edit a file that is "carController.php". In between I want to make...
asked by 19.09.2018 / 18:42