Advice line does not get printed in Git

On some machines, the line (use "git reset HEAD <file>..." to unstage) does not get printed, where does it come from? what should I do to make it print this advice message? $ git status On branch master Changes to be committed: (use "git reset...
more »

2017-10-16 21:10 (1) Answers

Git commit message not working with atom 1.21.1

I am trying to add commit message using atom and setting it as my default editor using git config --global core.editor "atom" but as soon as I enter git commit it opens atom and gives the message aborting commit due to empty commit message. I also tr...
more »

2017-10-16 15:10 (1) Answers

create local branch in svn like git

In git when I want to fix something or create new feature I am adding new local branch, apply the changes that need and then merge it to master branch and push it, but I SVN I can't create local branch, apparently when I want new feature branch I ha...
more »

2017-10-16 08:10 (1) Answers

Git Add . permission error windows

I need help with step by step solution to solving git add . permission errors: error: open (AppData/local/comms/unistoreDB/USS.jtx) Permission denied error: unable to index AppData/local/unistore/USS.jtx fatal: adding file failed There no tutorial...
more »

2017-10-15 23:10 (2) Answers

Checkout branch with libgit2

I'm trying to implement a simple checkout operation between 2 branches. The code executes without errors. git_libgit2_init(); git_object *treeish = NULL; git_checkout_options opts; opts.checkout_strategy = GIT_CHECKOUT_SAFE; /* branchName in this c...
more »

2017-10-15 19:10 (1) Answers

Git log Merge branch 'master' of central repo

I use this script to change author for specific commits: #!/bin/sh git filter-branch --env-filter ' NEW_NAME="MyName" NEW_EMAIL="my-name@my-domain.com" if [ "$GIT_COMMIT" = "afdkjh1231jkh123hk1j23" ] then export GIT_COMMITTER_NAME="$NEW_NAME" ...
more »

2017-10-14 21:10 (1) Answers

Github project structure

I'm just writing some project that is separated into 3 parts: API written in Golang, mongoDB and android client. And as above I thought it would be good to create directives. But when it's not good practice for golang github projects: for structure l...
more »

2017-10-14 18:10 (1) Answers

Git - develop on own remote and publish on github

I have the following situation: I am developing something with some other people on our own (private) server. This is useful to keep the files backed up and available. However, I would also like to host them on github. Is there a way I can push an...
more »

2017-10-14 18:10 (1) Answers

Github - original author pushing to forked branch

On Github - So I forked a branch, made some changes, and submitted a pull request. Before the pull request was accepted, I noticed a collaborator of the original branch pushed a commit into my forked branch. Then the pull request was accepted with ...
more »

2017-10-14 02:10 (1) Answers

Git Bash regex to match latest tag

My VCS has these tags 0.0.3.156-alpha+2 0.0.3.154 0.0.3.153 build-.139 build-.140 build-.142 build-0.0.1.28 build-0.0.1.29 build-0.0.1.30 build-0.0.1.32 I want to git describe --match "<regex>" to get the latest tag of the form ... (so it's ...
more »

2017-10-13 11:10 (1) Answers

What is "git de-duplicates blobs"?

I was reading this blog post about git bombs and came across the concept of git de-duplicates blobs to make repositories smaller. Unfortunately the article doesn't explain in a clear way or maybe doesn't go into details about what does it exactly mea...
more »

2017-10-13 04:10 (2) Answers

Asymmetric diff

I have two branches in my git repo, A and B. I want to see if A contains all the textual changes as B. git diff A B doesn't quite do what I want because it will also report all the changes in A which are not in B. I only want the diff for changes in ...
more »

2017-10-12 22:10 (1) Answers

Git: is there a way to auto push a subtree?

I have a big private repository which is maintained on a local network. I'd like to automatically push a subtree of that repository outside of that network. I need it to be simple: *Task* someone pushes to local remote repository --> a subtree is a...
more »

2017-10-12 18:10 (1) Answers

VSTFS 2015: Unable to delete remote branch

I have a setup of VSTFS that is 2015 with git. Somehow we have two branches, Development which is one I want to keep isolated since that is our master. Somehow there is a remote branch development (lower case d) as well. I want to delete this one sin...
more »

2017-10-12 16:10 (1) Answers

Git autocomplete for custom bash functions

In my .bash_profile, I have a lot of functional shortcuts for git. For example: function gitpull() { branch="$1" if [[ -z $branch ]]; then current_branch=`git symbolic-ref -q --short HEAD` git pull origin $current_branch; ...
more »

2017-10-11 21:10 (1) Answers

How can a file be committed with CRLF on git?

I have a repository containing 5 files that have been committed with CRLF. I don't know how this happened, but on a clean checkout if I use this command it prints 5 files (out of hundreds): git grep -I --files-with-matches --perl-regexp '\r' HEAD ...
more »

2017-10-11 20:10 (2) Answers

Stripe-Android - Forking and using as own library

I'm integrating stripe-android into my application, but needed a few changes to make it fit correctly. Following this answer, I made a fork and include it as a gradle dependancy. Linked Answer You can use another way to add a dependency with a g...
more »

2017-10-11 19:10 (1) Answers