How to avoid PhpStorm staging file on Refactor > Rename

When creating a file under PhpStorm, it appears untracked in Git. But using Refactor > Rename, it moves the file to the staged area. Is there any way to disable this ?

SourceTree custom action doesn't work but works through Git terminal window

I’m trying to setup Source Tree custom Git action to extract and zip files for deploy from selected commit till the HEAD, excluding deleted files with –diff-filter. archive -o HEAD $(git diff –name-only –diff-filter=ACMR $SHA) Source Tree custom action screenshot The problem is that this Git command works perfectly through Git terminal window without […]

Pulling from Upstream into empty master causes merging

I´m pretty new to git. I´ve got an empty master branch. And now I tried to pull something from an extern upstream with: git pull upstream master The result is that an editor opens, and says: Merge branch ‘master’ of ….. Please enter a commit message to explain why this merge is necessary, especially if […]

What have I changed during a manual git merge?

I am in the middle of a big manual git merge, the code is not compiling, and I’m trying to figure out what I’ve done wrong. I think I can find out the difference between the working tree and my current branch with git diff -C HEAD and the difference between the working tree and […]

sometimes I will lose commit's signature

I often commit work with -S argument, but when I check my git log with git log –show-signature, some of my works are signed, but some of them are not signed. I have noticed when I commited, I got some output like this: You need a passphrase to unlock the secret key for user: xxxx […]

How do I fork a git tool and edit it for use with another DVCS, without confusing git users?

I’m not a git user (gasp). I use darcs. My question is: What steps should I take to fork a git repo, host it on github, yet make it apparent that it is to be used with a darcs repo? I’m trying to port an Atom package (git-time-machine which depends on git-log-utils) to make it […]

Git Private Server what http url to use to clone repository in Visual Studio 2015

With launch of Visual Studio 2015, we started looking for Git as source control. Being naive to linux, we tried and were able to install and configure the latest Git on our CentOS linux server using the tutorial below (option 2). we used the below article to create repository (testrepo) and do an initial […]

Commit Related to changes is there but the changes are not reflected in the repo , why does this happen?

I made some changes in the git repo and commit my changes and pushed those changes in the repo at that time . But after some days I checked the commit history of a file , in that history latest commit is my commits . I used the below command to check the commit history […]

Gitlab git repository setting for windows share cifs

I’m runnung ubuntu 12.04 and 14.04 I’ve mounted the windows share on /mnt/git-data I’ve addded this to the /etc/fstab //windows-share/git-data /mnt/git-data cifs uid=git,gid=git,credentials=.cifscre,iocharset=utf8,sec=ntlm 0 0 And changed the /etc/gitlab/gitlab.rb ‘s git_data_dir to /mnt/git-data and ran the sudo gitlab-ctl reconfigure but gives this error Looks like the git user does not have permission to change the […]

What are the benefits of using git submodule

Currently trying to figure out what sort of package management to use. For example I am currently working on a javascript project with nodejs. I have setup a git submodule and currently trying to figure out which approach to use. cloning the repository into the current repository? cd ./somedir && git clone some_repo using git […]

Git Baby is a git and github fan, let's start git clone.