{"id":15697259,"url":"https://github.com/joseluisq/git-useful-aliases","last_synced_at":"2025-05-08T23:45:28.064Z","repository":{"id":146282666,"uuid":"46515920","full_name":"joseluisq/git-useful-aliases","owner":"joseluisq","description":"Small list of useful Git aliases.","archived":false,"fork":false,"pushed_at":"2016-09-14T17:36:40.000Z","size":5,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-08T23:45:22.861Z","etag":null,"topics":["git","git-alias"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/joseluisq.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2015-11-19T19:40:51.000Z","updated_at":"2024-09-29T09:40:03.000Z","dependencies_parsed_at":"2023-10-15T23:24:56.001Z","dependency_job_id":null,"html_url":"https://github.com/joseluisq/git-useful-aliases","commit_stats":{"total_commits":13,"total_committers":1,"mean_commits":13.0,"dds":0.0,"last_synced_commit":"d97b5d3318b470e6419a33c3ce10f39024aaae5e"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joseluisq%2Fgit-useful-aliases","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joseluisq%2Fgit-useful-aliases/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joseluisq%2Fgit-useful-aliases/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joseluisq%2Fgit-useful-aliases/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joseluisq","download_url":"https://codeload.github.com/joseluisq/git-useful-aliases/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253166474,"owners_count":21864467,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["git","git-alias"],"created_at":"2024-10-03T19:14:55.548Z","updated_at":"2025-05-08T23:45:28.045Z","avatar_url":"https://github.com/joseluisq.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Git useful aliases\n\u003e Small list of useful [Git aliases](https://git-scm.com/book/tr/v2/Git-Basics-Git-Aliases).\n\n## Install\n\n```sh\n$ wget -qO- http://git.io/git-useful-aliases | sh\n```\n\n## Aliases\n\n#### git last\nShow last commit (HEAD)\n\n```sh\n$ git config --global alias.last 'log -1 HEAD'\n\u003e git last\n```\n\n#### git latest\nShow all files of the last commit (HEAD)\n\n```sh\n$ git config --global alias.latest 'show --name-only --oneline HEAD'\n\u003e git latest\n```\n\n#### git down\nPull all changes from remote branch master with `--rebase` option.\n\n```sh\n$ git config --global alias.down 'pull --rebase origin master'\n\u003e git down\n```\n\n#### git up\nPush all changes to remote branch master with `--set-upstream` option.\n\n```sh\n$ git config --global alias.up 'push -u origin master'\n\u003e git up\n```\n\n#### git save\n`git add` and `git commit` for all changes on local branch master.\n\n```sh\n$ git config --global alias.save '!git add -A; git commit .'\n\u003e git save\n```\n\n#### git uptags\nPush all tags to remote repository.\n\n```sh\n$ git config --global alias.uptags 'push --follow-tags'\n\u003e git uptags\n```\n\n#### git downtags\nPull down all tags from remote repository.\n\n```sh\n$ git config --global alias.downtags 'fetch --tags'\n\u003e git downtags\n```\n\n#### git lg\nShow log in pretty format.\n\n```sh\n$ git config --global alias.lg \"log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)\u003c%an\u003e%Creset' --abbrev-commit\"\n\u003e git lg\n```\n\n*Source: https://coderwall.com/p/euwpig/a-better-git-log*\n\n## Related\n[Fish Gitnow](https://github.com/joseluisq/gitnow) - Simple and fast commands for your git workflow. :tropical_fish: + :octocat:\n\n## Contributions\n[Pull requests](https://github.com/joseluisq/git-useful-aliases/pulls) and [issues](https://github.com/joseluisq/git-useful-aliases/issues) are be welcome.\n\n## License\nMIT\n\n© 2016 [José Luis Quintana](http://quintana.io)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoseluisq%2Fgit-useful-aliases","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoseluisq%2Fgit-useful-aliases","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoseluisq%2Fgit-useful-aliases/lists"}