Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Outdated gitconfig explanation in README? #696

Closed
dorianmariecom opened this issue Apr 20, 2022 · 2 comments
Closed

Outdated gitconfig explanation in README? #696

dorianmariecom opened this issue Apr 20, 2022 · 2 comments

Comments

@dorianmariecom
Copy link
Contributor

In the README it says:

  • Adds a create-branch alias to create feature branches.
  • Adds a delete-branch alias to delete feature branches.
  • Adds a merge-branch alias to merge feature branches into master.
  • Adds an up alias to fetch and rebase origin/master into the feature branch. Use git up -i for interactive rebases.
  • Adds post-{checkout,commit,merge} hooks to re-index your ctags.
  • Adds pre-commit and prepare-commit-msg stubs that delegate to your local
    config.
  • Adds trust-bin alias to append a project's bin/ directory to $PATH.

But this is what is in the .gitconfig:

[alias]
  aa = add --all
  ap = add --patch
  branches = for-each-ref --sort=-committerdate --format=\"%(color:blue)%(authordate:relative)\t%(color:red)%(authorname)\t%(color:white)%(color:bold)%(refname:short)\" refs/remotes
  ci = commit -v
  co = checkout
  pf = push --force-with-lease
  st = status
@jferris
Copy link
Contributor

jferris commented Apr 20, 2022

Those Git aliases are in the bin directory. If you have an executable on your path that begins with git-, Git will use it as a subcommand. For example, git current-branch will run the bin/git-current-branch script from this repository.

@jferris jferris closed this as completed Apr 20, 2022
@dorianmariecom
Copy link
Contributor Author

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants