Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
2 votes
1 answer
133 views

How can I create a (temporary) clean working tree for running unit tests in a git pre-commit hook?

If I forget to stage a modification/a file that is neccesary for a unit test, I want that that unit test to fail (when running inside of a pre-commit hook). The exception to this is gitignored files/...
Tobias Bergkvist's user avatar
0 votes
1 answer
64 views

Search for a string under src using shell script

I basically wanted to search for some sql stored procs in the code. For Eg: video.sf_get_video_topology , video.sf_get_vod_entitlements, video.sf_get_account_service_cd etc. There are a lot of ...
Jeel's user avatar
  • 2,515
0 votes
2 answers
635 views

stash show with message description ambiguous argument

I have this on my windows-bash console and git repository: $ git stash list stash@{0}: WIP on Issue55A: cc3f7ff A3 stash@{1}: On Issue55A: A named stash Then I would like to show/apply/pop with the ...
ferpega's user avatar
  • 3,224
0 votes
2 answers
3k views

Store credentials for git commands using HTTP

I would like to store Git credentials for git pulls permenantly on a linux machine, and git credential.helper doesn't work ( I think because I'm not using SSH ) - I get that error "Fatal: could not ...
Poka Yoke's user avatar
  • 403
1 vote
3 answers
58 views

Command for viewing overall git status regardless of location in directory

Is there a way to see a big-picture status in git? I'm new to git and end up losing files based on stashing them in the wrong directory or working on the wrong branch, and I'd like to find a command ...
Claire's user avatar
  • 101
3 votes
1 answer
2k views

can't pop named stash in git

I am trying to write set of bash commands that will: Stashes the current changes Checkout and pull SOURCE branch Checkout and pull TARGET branch Merge TARGET branch with SOURCE branch Push changes to ...
Naor's user avatar
  • 24k
0 votes
2 answers
6k views

How view recent changes to local repo in Git?

I'm working off of a big repo with lots of files. I've made minor changes in a lot of them (and haven't committed anything) and would like to be able to cycle through the history of changes to see ...
Mîchæl's user avatar
63 votes
5 answers
42k views

Is it possible to get commit logs/messages of a remote git repo without git clone

Is it possible to get commit logs/messages of a remote git repo without git clone? The git repo I am working with is huge, even if I run git clone with --depth=1 still takes sometime before I am able ...
Murtaza Pitalwala's user avatar
1 vote
3 answers
668 views

What does the shell script in git-stash mean and how does it work?

I saw code snippets like this in git-stash rm -f "$TMP-index" && GIT_INDEX_FILE="$TMP-index" git read-tree HEAD && # find out what the user wants ...
Hanfei Sun's user avatar
  • 46.9k