Skip to main content
3 votes
3 answers
183 views

I have the following git alias function that moves files into a directory using git mv of those files and then does the git commit : [alias] mv-into-dir = "!mvIntoDIR() { \ cd ${GIT_PREFIX:-.}; \ ...
SebMa's user avatar
  • 4,965
865 votes
26 answers
432k views

I saw a screencast where someone had gotten git st git ci to work. When I do it I get an error asking me if I meant something else. Being a git newb, I need to know what you have to do to get this ...
DevelopingChris's user avatar
0 votes
1 answer
117 views

I am trying in my linux (Xubuntu) console to make the git commit message in my chain of commands a variable so I can more easily execute my chain of commands. Instead of this where I habe to edit ...
Julian's user avatar
  • 106
3 votes
1 answer
189 views

I got an error two hours ago from this alias in the .gitconfig file, which is: [alias] chist = log --graph -10 --pretty=format:"%C(cyan)%h%Creset %<(20,trunc)%s %Cgreen%<(11,trunc)%an%...
Doohyeon Won's user avatar
264 votes
13 answers
116k views

I am trying to create an alias that uses both multiple Git commands and positional parameters. There are Stackoverflow pages for each, and it would appear painfully obvious to do both, but I am having ...
Stella's user avatar
  • 2,643
1 vote
1 answer
128 views

Here's a common workflow: Make some changes and commit, e.g. git commit -m 'add action buttons' Make a bunch of interim commits Realize I want to fix that first commit Search for the commit SHA in ...
Big McLargeHuge's user avatar
191 votes
3 answers
66k views

I'd like the command git co to be the same as typing git checkout. A normal Bash alias (alias co='checkout') doesn't work.
joseph.hainline's user avatar
0 votes
0 answers
49 views

Environment/Background: zsh (v5.9) git (v2.48) git --exec-path results in /usr/lib/git-core Other StackOverflow posts read: Can't add git alias when using shell function Creating alias in git ...
chb's user avatar
  • 2,020
0 votes
0 answers
30 views

If I write git config --global alias.foo '!git bar "$@", all arguments provided to git foo will be forwarded to git bar while preserving spaces within arguments. For example, git foo hi &...
H.v.M.'s user avatar
  • 1,746
0 votes
1 answer
69 views

I work in C# with Unity, and it often touches a lot of files that don't want to commit. My changes that I want to commit are almost always exclusively .cs files. I created a git alias to stage all of ...
Nic Foster's user avatar
  • 2,904
4 votes
8 answers
3k views

I want to create a git alias which will allow me to do git visit and the repository will be opened in the browser.
Jonathan1609's user avatar
  • 1,937
1 vote
1 answer
215 views

I want a programmatic way (preferably an alias) to determine whether a repository was cloned with either --filter=blob:none or --filter=tree:0, and to be able to tell which. eg: if git is-treeless; ...
Tom Hale's user avatar
  • 48.1k
1 vote
0 answers
46 views

I have a couple of git alias in my ~/.gitconfig file, like so: [alias] co = checkout dd = diff --relative --name-status While in Bash, when I type git co <tab> I get a list of branches to ...
Igor Gatis's user avatar
  • 4,948
2 votes
1 answer
422 views

For some reason I have to run git gc --prune=now almost every day before I run a git pull so I wanted to create a git pp alias that helps me run those two commands I added this to the users .gitconfig ...
Mauricio Gracia Gutierrez's user avatar
1 vote
1 answer
1k views

I need to run a script which notifies my CI server after I push. Therefore I need to alias "git push" into "git push; powershell script.ps1". Here is what I am trying: $ alias git ...
kiryakov's user avatar
  • 145

15 30 50 per page
1
2 3 4 5
9