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...
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...
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...
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 * .
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 .
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...
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 "...
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,...
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...
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...