Questions tagged as 'git'

1
answer

Push git "Everything up-to-date" Data is not actually sent

I'm doing PUSH for a repository on gitlab.com. I get the return:    warning: redirecting to    link Everything   up-to-date In my understanding It worked. In practice the changes are not sent. I saw other similar questions, and tried fol...
asked by 13.10.2017 / 16:09
2
answers

How to create and remove aliases in GIT

I would like to know the commands to create an alias, I know that I can shorten my commands and make it faster and more productive, but I still do not know how to do this. Does anyone know the create and remove commands?     
asked by 23.02.2014 / 16:00
2
answers

git merge or rebase

When programming using git, I always use merge of my branch in the master to add new codes, but some graphical tools like smartgit override the merge. Should I use the command rebase or merge to add my changes to my mas...
asked by 17.02.2014 / 23:47
1
answer

Why is the reduced version of git SHA1 code 7 characters long by default?

I'm studying Git and I came across the command cherry-pick , which retrieves a specific commit . The parameter passed to this command is the hash generated to identify only that commit . However, in the documentation examples, a redu...
asked by 07.08.2017 / 15:04
2
answers

When should I keep or delete a branch?

I'm working on a project and I'm starting to use a versioning control system, Git. When I create a branch to introduce a new functionality and after finishing it, I make a merge with master . What is the best practice to a...
asked by 22.10.2015 / 13:59
2
answers

Problem to publish project - GitHub

I'm trying to publish a project in GitHub, but every time I give a git push the message appears: error: src refspec source does not match any. error: failed to push some refs to 'https://github.com/user/project.git' I have seen some...
asked by 12.06.2014 / 23:19
2
answers

Is there any way to change a commit message?

I work with git on all projects in the company where I work. Unfortunately, some programmers end up putting any message, in a hurry, into commit . This makes things harder, because instead of you seeing the description of what was d...
asked by 18.02.2016 / 12:11
1
answer

What is the git diff command for?

I asked this question shortly here on SOPT . There were some questions, and then the user @AnthonyAccioly asked me to ask this question. What is the git diff ?     
asked by 12.08.2015 / 17:21
1
answer

Git, Doubt when I commit

I have a question about using git, and I would like the help of you. I have the following situation: I'm developing a new feature in my application, but I did not complete it completely. Let's assume that I'm developing on the pc at home....
asked by 18.10.2017 / 04:52
1
answer

How to stop observing the changes of a certain file?

The scenario is as follows. I work on a project that contains a JSON file with the database configuration. Something like: { "db_config": { "conn_string": "server:localhost;user:db-user;password=db-pass" } } It turns...
asked by 30.03.2017 / 18:14