Git HEAD referring to branch vs to commit

Git
According to Pro Git Book: In Git, HEAD is a pointer to the local branch you’re currently on. This is consistent with Git for Computer Scientist...
2 years ago

Capistrano Deploy fails with git: 'info' is not a git command

Git
I setup a new project with Capistrano and although i can successfully run cap deploy:setup if i try to deploy my project I get the error below → cap ...
2 years ago

How to undo git push without changing the local code?

Git
I confused to push all file codes include lib file which is in .gitignore in android studio. How can we undo git push file without changing the local ...
2 years ago

Is there a 'git sed' or equivalent?

Git
Let's say I want to rename a method in source code contained in a git repository. I could do this by hand, but the method name might be in multiple pl...
2 years ago

How to do "go get" on a specific tag of a github repository

Git
I am trying to compile the InfluxDB database (version v0.8.8) using go get github.com/influxdb/influxdb But this pulls the master branch, and I need ...
2 years ago

Sync all branches with git

Git
I push code from two main locations: my PC at home and my laptop at work. I use Github to store my repos. This is the scenario: I did some work in my...
2 years ago

Git pull error: unable to create file (Invalid argument)

Git
I am trying to sync remote repo with local repo but getting following errors. Some files (which have not extention) are not getting sync with local re...
2 years ago

How to set up p4merge as diff tool for Visual Studio 2015 | git

Git
I've managed to successfully wire up P4Merge with TortoiseGit through this tutorial. However, given I'm spending most of my time in the IDE (Visual S...
2 years ago

Roll back to an old commit, but apply back my commits

Git
I have been working on a feature branch A that I merged to dev branch. I made several more commits to the dev branch after merge. However, I realized ...
2 years ago

Git error when trying to push -- pre-receive hook declined

Git
I'm using the latest version of TortoiseGit on Win XP. When I try and push a change I've commited, I get the following error ... git.exe push -v --p...
2 years ago

AWS - Deployment Failed

Git
I am working on a scenario, where I need to push the code from a GIT repository to AWS Instance. To achieve this I am using AWS CodeDeploy feature. Bu...
2 years ago

Conflicts after git reset --hard

Git
I've got a branch named master and I want to reset all changes made on this branch. Need to move all commits from branch named origin/d to master. So...
2 years ago

Migrating projects from StarTeam to Bitbucket

Git
We have around 5000 projects (various technologies) managed in StartTeam. Client moving to a new stack Bitbucket, JFrog, Bamboo & UrbanCode. Bitb...
2 years ago

SSL verification problems trying to clone git repo with cocoapods

Git
I've just created a new Xcode 8 project and I'm trying to install Alamofire via CocoaPods. Just after pod install I'm getting this error: [!] Error i...
2 years ago

`git status` shows worktree folders

Git
I have created a worktree in my git project (feature of git >= 2.5). It resides in a sub folder of the root project folder and is called wt-something....
2 years ago

Why I get remote: sh: 2: Syntax error: Unterminated quoted string when I ran git push heroku master

Git
I am using Rails 4.0.0.rc2 and Ruby 1.9.3 I have created application and I have push that application at GitHub repository by using git push. When I ...
2 years ago

I want to use Git via macports instead of Apple Git

Git
I'd like to use the latest version Git via macports instead of Apple Git. But when I type git --version on terminal app, it displays Apple Git version...
2 years ago

Rebase remote branch onto master while keeping the remote branch updated

Git
I am trying to rebase my remote branch onto master, but I want to keep the remote branch pointing to it's commits, just based at a different point in ...
2 years ago

How to associate a commit to a branch

Git
I have started fiddling with Git using this reference and I created some commit objects with commit-tree. The problem is that when I execute git log,...
2 years ago

Why can two git worktrees not check out the same branch?

Git
Using a separate git-worktree, why can I not check out the same branch as in the main working copy? If I try, I get the error: fatal: 'mybranch' is a...
2 years ago