Questions tagged as 'git'

2
answers

Clone remote git repository to commit

I have a project stored in a repository of
asked by 27.07.2017 / 17:29
3
answers

Is there a register of command activity in git?

The idea is to see a list of all the actions or commands that the user has introduced on Git. For example, to know how I ended up committing, to see what commands I have previously entered and to better understand what the system has done. No...
asked by 14.12.2018 / 14:37
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

"Index file corrupt" using git

Use git for version control. But I have started receiving the following error message when I try to do any operation in the repository: fatal: index file corrupt This means that it can not operate or do anything with the code....
asked by 02.03.2017 / 17:05
1
answer

Problem with git in local

I have a virtual machine with ubuntu where I have git installed as a server and another with ubuntu that I use as a client. Start the repository on the server and then on the client. In the client I indicate the files with add. , I do the commit...
asked by 18.05.2018 / 20:00
2
answers

Add users to a Git project

I have the following problem .. on a server I have a project and it is in a Bitbucket repository. If I do git shortlog -sn I'm ready: 36 root 4 Mi User I need to add another authorized user from Bitbucker to commit and push...
asked by 30.08.2018 / 16:36
3
answers

Not working properly .gitignore when versioning an Android project

I still can not have a .gitignore file that can help my code versioned in git for an Android project, if I modify a class or something very simple modifications are made in unnecessary files like tests. Annex my .gitignore too. *.iml .gr...
asked by 26.10.2017 / 17:11
2
answers

Git - Delete files with rm (not with "git rm") and reflect it in the index, the local repository and the remote repository

A few days ago I started studying Git. I understood everything quite well, although I have some doubts about how to delete files. Precisely, what I want to know is how I delete a file / directory with the command " rm " of linux and tha...
asked by 07.08.2017 / 15:41
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
2
answers

GIT can not create file

I do not have any more processes running.    fatal: Unable to create 'C: /Users/Mauricio/Documents/PROGRAMACION/Github/PostCSS/.git/index.lock': File exists.       Another git process seems to be running in this repository, e.g.   an editor...
asked by 05.10.2016 / 02:49