All Questions
9 questions
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/...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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
...