Questions tagged as 'git'

1
answer

Is it possible to keep a branch with pending changes in Git?

Imagine that I have in the master branch a commit of a texte.txt file. So I create a branch called teste2 , I checkout it and create a file called teste2.txt , but I do not commit it. If I give git checkout master an...
asked by 29.07.2014 / 13:08
1
answer

List ignored files with git --assume change

I ignored some files in a git project and I just need to have the control to know which ones were ignored or not. It's going to happen that some time I need to change. I've tried all the commands below: 1116 git --index-info 1117 git chec...
asked by 10.08.2014 / 20:32
1
answer

How does Git identify a file change?

Example scenario I have the projetos folder on the server. On my local machine, where I have Git, I created a folder empresa , where I copied all the files from the projetos folder of the server. I made add , commit...
asked by 30.08.2018 / 22:02
2
answers

Difference between "git add --all", "git add." and "git add - u"

The command git add --all seems to equal the command git add . , but I'm not sure if they are the same thing. If not, what is the difference between them? I'm also in doubt about git add -u and git add * .     
asked by 30.08.2018 / 17:33
1
answer

What is this information next to the commit ID?

What does this red information next to the commit ID mean? I noticed that there is only this in this commit. There is no branch, this log is in master .     
asked by 01.11.2018 / 16:36
1
answer

Ignoring files in git that do not have extension

Programming in C ++ for Linux, when compiling the code with g ++, three files are generated:    file.o       file The last one, in this system, is the executable binary generated by cpp. If I wanted to ignore the files: #.gitignore...
asked by 04.04.2018 / 05:30
1
answer

Inaccessible folder in github

I'm uploading my site to github. Commands I've made: git init git remote origin master URL git add --all git commit -m "Primeiro Commit" git push origin master But git sends all files and folders to github, but a folder in specific "...
asked by 01.06.2017 / 21:53
2
answers

Is it possible to change the order of commits in my branch?

I would like to know if I can change the commit orders of my branch. Reason: I made a gigantic commit, with low changes and great importance to the system (which can kill the system), and now I want to go making changes in several commits,...
asked by 08.12.2016 / 20:55
2
answers

git log command for all commits of a specific file

You can check the git log for all commits of a specific file. I made a commit to a foo.txt file and now it no longer shows in the git history. My command: git log foo.txt I want to search all commits records for this file, and then fi...
asked by 10.01.2018 / 15:07
2
answers

GIT - "import" content from another repo to a branch

My question is: I have a repository called "site-layout" with only the branch master, where I develop a layout with the bootstrap v4. I still own another repository called "site-old" also only with the branch master, where is the code of a...
asked by 13.02.2016 / 00:02