Questions tagged as 'git'

1
answer

GIT recover files (git reset --hard HEAD)

I'm a little inexperienced with GIT. I was working on a branch, however, I wanted to receive some updates in the master branch, but git pull failed, as there were non-committal changes. So I ended up using the git reset --hard HEAD...
asked by 09.05.2016 / 01:16
1
answer

Is it possible to work with a local "community" repository in Git?

Imagine that I have a remote repository in Github, but I would also like to replicate it to a local server, thus allowing my team to work (and share code) even without remote access. And, for example, at the end of the day or week, a local "c...
asked by 24.02.2015 / 19:31
1
answer

Git flow - batch commands

Every time I've finalized a branch, be it release, feature or hotfix, I have to follow a series of commands to publish changes to my repository. For example: I will end a hotfix named ht001 so I do: git flow hotfix finish ht001 git checkout de...
asked by 22.05.2018 / 19:59
1
answer

Error pushing gitbash

You are showing the following error in the git bash console: $ git push -u origin master Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository e...
asked by 22.03.2018 / 19:28
1
answer

How do I protect my account from unauthorized push?

I'm starting to use the git repository through gitlab, but I'm using it on a company computer where I work. Assuming that I leave the company and leave the configuration ready, how can I block a new programmer from erasing my entire project o...
asked by 19.04.2018 / 22:06
1
answer

How to pull files from the repository without merge commit?

How can I get new files from the repository without committing Merge branch 'master' of... ? I'm using: git pull It pulls everything out, but it creates this merge commit. How do I get only remote repository commits bypassing this...
asked by 09.03.2018 / 15:38
1
answer

How to join multiple commits from the same file?

I made three commits in the same file using git commit arquivo.ext -m "msg" . I realized that these three commits would be better together, as if they were a single commit. Can you do this even after git push ?     
asked by 26.11.2017 / 19:24
1
answer

Problems with Bitbucket Team Remote Repository

I created a Team in bitbuckt, and I created a Project for this Team and in this Project I created a Repository . I added to Team, a ssh key I created on my machine (Ubuntu), however when I run git clone copying the ssh url I get the...
asked by 19.10.2017 / 13:02
1
answer

Structure of the Commit

I would like to know if you can change the structure of a commit, in the case before it is made a predetermined structure, example: GIT_AUTHOR_NAME = '$name(Previamente registrado)' GIT_AUTHOR_DATE = '$date(data do sistema)' GIT_COMMITTER_DATE...
asked by 30.06.2016 / 17:00
1
answer

Reversing git pull

I made a Git Pull and overwritten everything I had in the code there. In my company I used SVN and there I did an update after a commit and the system always performed a merge of everything, but the company migrated everything to git and it i...
asked by 01.08.2016 / 16:51