Questions tagged as 'git'

1
answer

What is a git diff, how to do it and what is it for?

I have a problem with my project. I make contributions to a git project, and when checking the Master branch, I saw that there are missing some methods that have in a branch, but do not have in the Master. I do not know how many and which are...
asked by 13.08.2018 / 14:57
1
answer

Find substring in recent commit messages

I'm looking for a substring in the most recent commits in my repository. I use the command git log -n1 --grep='${subString}' . But using the -n flag I will only get the last commit, which is technically the most recent. Ex:...
asked by 20.08.2018 / 19:08
2
answers

Is there a way to "link" specific content from one repository to the other?

I have a program that needs some DDLs , these DDLs are available in another Git, also in GitHub. So, would it be possible for my library link such a file to such a repository? To be more specific, there is a DDL ( github.com/ c...
asked by 16.09.2018 / 10:41
1
answer

Additions and Deletions per file in commit

I'm using the git log --stat <commit> command to get the additions and deletions made to a commit. Ex: commit 1a1a Author: Gabriel Hardoim Date: 2018-08-20 20:30:40 arquivo.java | 3 +++ arquivo.css | 3 --- 2 files chan...
asked by 11.09.2018 / 18:42
2
answers

Reversal of Commit

I have a question, I would like to return to a certain commit and assign this commit to a certain branch without losing a history, for example. I have a development branch, where it is read by a URL, when I am developing and I want to show my...
asked by 25.01.2018 / 11:26
2
answers

How to block the sending of package-lock.json by gitignore?

I'm not able to "ignore" sending package-lock.json to gitlab, when I run git status it appears to be sent to me. Here is a print showing .gitignore and my terminal when running git status. .gitignorefile     
asked by 05.06.2018 / 22:45
1
answer

How to work with fork of a project?

I made the fork of a project, made the changes, made the push to my repository in Github and there I generated a pull request for the repo of the original project. After a few days I decided to make a new contribution, however, the original r...
asked by 12.03.2018 / 19:04
1
answer

How to work with release in git?

Is GitHub's release feature a platform or Git resource? I ask this because I did not see this feature on Bitbucket.     
asked by 09.03.2018 / 22:25
1
answer

How to undo the command "git reset HEAD ~ 1"?

I was trying to get back to the last committed commit, and nothing works anymore, I wanted to know if you have to undo the git reset command     
asked by 28.02.2018 / 18:18
1
answer

Ignoring a subfolder with gitignore

How to ignore a subfolder with gitignore? in my case only the subfolder / vendor My structure    /       / systema / vendor My git is in the design range my gitignore too !systema/ systema/vendor/* I tried to do this but git igno...
asked by 16.01.2018 / 18:25