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 done?
I saw a screencast where someone had gotten
to work. When I do it I get an error asking me if I meant something else. |
|||
|
Basically you just need to add lines to
Or you can use the git config alias command:
The alias command even accepts functions as parameters. Take a look at aliases. |
|||||||||||||||||||||
|
Follwing are the 4 git shortcuts or aliases youc an use to save time. Open the commandline and type these below 4 commands and use the shortcuts after.
Now test them!
|
|||
|
I think the most useful gitconfig is like this,we always use the 20% function in git,you can try the "g ll",it is amazing,the details:
|
|||||
|
It is given here Aliases.Even there are great answers here, I added this because it differs in windows and linux |
|||
|
This worked for me:
on:
|
|||
As others have said the appropriate way to add git aliases is in your global Below is a copy of the alias section of my
Also, if you're using bash, I would recommend setting up bash completion by copying
Note: The bash completion will work not only for the standard git commands but also for your git aliases. Finally, to really cut down on the keystrokes, I added the following to my
|
|||||||||||||||||||||
|
$ git update git: 'update' is not a git command. See 'git --help'. Did you mean this? update-ref $ git config --global alias.update 'pull -v' $ git update From git://git.kernel.org/pub/scm/git/git = [up to date] html -> origin/html = [up to date] maint -> origin/maint = [up to date] man -> origin/man = [up to date] master -> origin/master = [up to date] next -> origin/next = [up to date] pu -> origin/pu = [up to date] todo -> origin/todo Already up-to-date. |
|||
|
You need the
For global alias:
|
|||
|
This will create an alias
|
|||
|