Questions tagged as 'git'

2
answers

How do I connect remotely in Git

I already know what we use versioning, how to do commits, add new files, logs, etc. but I would like to upload my files to the Github repository online, how do I connect and send my files?     
asked by 05.02.2014 / 18:19
1
answer

How to work with GIT correctly?

I'm starting a team project and my question is whether the order I'm following is correct when working with GIT . I run git pull origin master //Aqui baixo os arquivos mais recentes do projeto I make all changes to an issue....
asked by 16.05.2018 / 20:55
2
answers

How to remove an old commit

I'm trying to remove a very old commit from my repository that was just to test git, I researched some solutions and got into it: git rebase --onto (sha1) (sha2) or git rebase --onto HEAD~2 HEAD~1 But I get some errors, my question is...
asked by 06.04.2015 / 22:31
3
answers

How to clone the repository and all the arms of the remote?

I would like to know how to automatically clone all the remote's arms to the location, without having to do the command below for each one. git checkout -b <branch> <remote>/<branch> There are many arms to be able to do th...
asked by 07.06.2017 / 19:23
1
answer

Remove local tag in Git

How do I delete a tag that was created locally in my git repository and has not yet been pushed Example: I created the v1.4.9 tag, but I noticed that it was in the wrong branch before doing git push . I want to remove the v...
asked by 27.11.2014 / 20:42
1
answer

Error making clone with Git

When I try to make a clone of a repository through Git Bash by command line I get this error, as in the image below: I'm on a corporate network, could the firewall be blocking me? Has anyone ever had anything like this?     
asked by 14.07.2014 / 14:16
1
answer

The 'git push' command is not working after removing a commit

I needed to roll back a commit and locally it works fine. Now when I give PUSH to my repository, it gives me error. My attempt git fetch origin c6f1668e2fac57401a99a2184a47f0b58c15e403 git reset --hard FETCH_HEAD git add . git commit -m "re...
asked by 26.01.2018 / 17:26
1
answer

How to recover terminal data with php?

Example, I have this following command in a php file: <?php $imprimir = shell_exec("cd /home/afonso/Documentos/teste; git add arquivo.txt; git commit -m 'testando'; git push -u origin master"); So far everything works fine, except that...
asked by 29.01.2016 / 13:32
1
answer

Back repository to the previous state [duplicate]

I have a project that we use GIT for versioning. However, one of the programmers uploaded a wrong version to the remote server, gave commit , push and several commits and pushs . There the site got an error. We try...
asked by 03.09.2015 / 16:32
1
answer

How to find conflicting files in GIT?

Imagine that I just made a git pull . So, for some reason I closed Terminal (No Ubuntu , for example) and did not see what files are marked as CONFLICT . I've already learned in a way where I would run the grep...
asked by 22.07.2015 / 14:41