Questions tagged as 'git'

1
answer

How to get only one git log result between the given range?

How can I filter only a single commint of git log? Example: git log --after=2017-10-02T13:40:56 With this I get all commits after that date, how can I get only the first commit after that date?     
asked by 04.10.2017 / 13:33
1
answer

Find out which branch has a certain tag - Git

I have a repository with several branches, and each branch has several tags. I want to find out which branch has a certain tag "tag_name". How can I do this?     
asked by 02.02.2017 / 13:31
1
answer

branching a branch of a given commit and migrating subsequent commits

I was updating a repository, creating its documentation, so I created a new branch called master-guibook a "./docs" directory and a "book.json" file in the project root, so I opened the Gitbook Editor. But the Gitbook Editor felt that...
asked by 31.08.2016 / 22:59
1
answer

I update index.html and delete files, but github does not update

I started a project on GitHub (I'm starting now with it), and everything was working perfectly. From one moment to the next, he stopped refreshing. I, within the GitHub site itself, delete files, change the contents of index.html and nothing to...
asked by 18.06.2016 / 17:44
2
answers

Starting GIT by Terminal

I'm trying to give git init through the terminal and when I type this command it accuses that the 'config' and '.git' folder already exist, etc. Also when I try to use git add * it takes time to add the file, now I do not know if it's because of...
asked by 25.06.2014 / 00:21
1
answer

.gitignore for multi projects - Visual Studio

Scenario I have a versioned project in github, I mounted a .gitignore file to make the project lighter and not unnecessarily versioning files, but I'm not having success. Note that my .gitignore file is at the root of the project. Doub...
asked by 17.04.2018 / 15:44
1
answer

Git checkout does not change local files / folders

I'm starting to get introduced to GIT. And I had a problem. Apparently, the checkout was not changing the local files. Let me explain better: My flow is simple, clone, change code, commit, push / pull, branch, checkout and some merges....
asked by 03.06.2014 / 22:54
2
answers

What is the best practice for empty folders in .gitignore

Some people have told me that the correct thing is to create an empty file and put it inside each folder and set a .gitignore like this: /pasta/subpasta/* !/pasta/subpasta/.arquivovazio And other people told me to create a .gitignore...
asked by 09.05.2016 / 20:42
1
answer

Error in git repository:

It looks like I made some mess with the underlying Git repository and it was broken, rendering it invalid. Error:    error: pathspec 'development' did not match any file (s) known to git. I used these commands but had no effect....
asked by 13.06.2018 / 15:57
1
answer

error in cloning bitbucket repository through ssh

I followed the steps from this site to be able to access Bitbucket via SSH on Ubuntu. But when I finished and tried to clone a repository the terminal printed this error:   Warning: Permanently added the RSA host key for IP address '104.192...
asked by 20.10.2016 / 22:47