Awesome Git
Last updated
Last updated
A curated list of amazingly awesome Git tools, resources and shiny things.
If you have uncommitted changes in the up
branch, stash them to avoid losing work:
default
BranchSwitch to the default
branch and bring it up to date:
This will pull the latest changes from the remote default
branch into your local default
branch.
If you need to merge changes from default
into up
, switch to the up
branch and merge:
If there are merge conflicts, Git will prompt you to resolve them manually. Once resolved, continue with:
up
(Optional)If you’ve updated the up
branch and want to push it to the remote repository:
If you’re trying to push to main
but it doesn’t exist locally or remotely, confirm the branch name:
If main
exists remotely but not locally, fetch and check it out:
Then push changes:
If main
does not exist and you’re using default
as the main branch, continue using default
.
If you still need to run git rm --cached .
, ensure you specify the -r
flag to remove files recursively:
This removes all files from the staging area without deleting them from your working directory.
If you want to reset the remote branch to your local branch forcibly:
Note: Use force-push carefully, as it overwrites the remote branch with your local version.
Check your Git status and branch alignment to confirm everything is in sync:
If this process needs to be automated for recurring updates:
Use a shell script to fetch, merge, and push changes.
Schedule the script using a cron job for automation.
Pull requests on interesting tools/projects/resources are welcome.
There are tons of learning material on the Web
Style guide when you work with git
Git clients are available on every platform, from mainframe to your mobile device
People have plenty of options to host their source code
Or you can host the code yourselves
Inexpensive branching allows people adopt workflows other than the classic centralized workflow
No single workflow fits everyone's need
Git provide hooks at commit/push phrase, allowing integration with and code quality checking tool and Continuous Integration (CI)
more on https://githooks.com/
Various tools for daily operations
Git is designed for source control management. but people extend the idea and push version control to everywhere
- learn Git in 15 minutes with pseudo-terminal interface
- comprehensive tutorial on Git
- freemium ebook from fournova Software (makers for Tower), associated with paid video course
- free Git book, also available on paper (CC BY-NC-SA 3.0)
- free tutorials and resources to help you learn the basics of Git
- book built by dozens of people in the Git community
- a short O'Reilly book on Git
- paid training course from Code School
- visual way to learn git branching
- tutorial-based book by Manning Publications
- short book about Git
- great series of articles about Git
- Interactive Tutorial App that runs on your Desktop!
- step by step intro
- Use Git LFS on an existing repository to manage large files in a better way
- Visualized few basic Git concepts using D3.js: commit, branch, checkout, reset, revert, merge, rebase, fetch, pull, push, tag
- Git from a timeline and level perspective and git commands cheatsheet grouped by functionality
- How to Recover from a Mess
- GitHub Cofounder's Narrative-style Intro to Git Concepts
- lower-level, more structural explanation of git concepts
- Very nicely explained, simple and crisp way of understanding git fork and pull request workflow.
- It's a YouTube channel with a lot of great git videos. It covers everything from the basics to advanced Git topics.
- I never found a git tutorial I didn't understand while doing it. Just sometimes those tutorials didn't line up very well with my actual work. This git help in the form of a choose your own adventure was a life saver when I was first starting out.
- fairly comprehensive guide to recovering from what you did not mean to do when using git
- A blog explaining how git creates and stores commit histories.
- guide about what to do when things go wrong
- all important Git terms (commit, commit SHA, branch, merge, rebase) explained using gitk
- A blog explaining how command git cherry-pick works.
All about .gitignore
.
- free and complete explanation of git internals and the .git/
directory.
- Git Client by GitHub. works with GitHub and GitHub Enterprise seamlessly
- free (in-beer) GUI client. Windows and Mac only
- a popular non-free Git GUI client. Mac and Windows
- a cross Git client for Windows, Mac & Linux. Electron based. Free for non-commercial use and paid Pro version is available.
- An awesome and free git client for macOS and Windows
- an easy-to-use Git client on Windows. well-integrated with Windows Explorer.
- a commercial comprehensive SCM client with Git, SVN, Mercurial. cross-platform (works on Windows, Mac and Linux)
- TortoiseSVN inspired graphic tool for version control systems, with Nautilus and Thunar integration
- a open-source GTK+ GUI client
- a cross-platform Git GUI client
- Git client for Android 4.x
- The easiest way to use git. On any platform. Anywhere.
- a clean, minimal Git client. Mac only.
- a shell extension, a Visual Studio 2010-2015 plugin and a standalone Git repository tool.
- a powerful Git client for iOS. Free with in-app purchase to unlock the ability to push commits.
- Enhance the basic git
CLI
- A Git porcelain inside Emacs
- a free for personal use effortless Git GUI for Windows, Mac, & Linux.
- A simple terminal UI for git commands, written in Go
- a graphical Git client designed to help you understand and manage your source code history.
- the de-facto git hosting service. Perfect integration with most external services.
- Resources & Learning for GitHub
- well-known for its free private repository (5 user max).
- Jetbrains all-in-one solution for software teams, with IM, ticket tracking, source control.
- a free Git repository hosting service served by GitLab EE. Unlimited repositories and private collaborators
- cloud service for software development formerly known as Visual Studio Team Services, Visual Studio Online and Team Foundation Service Preview
- a SaaS service provided by Amazon Web Service on high availability infrastructure
- paid Git repository hosting service
- a paid repository hosting service with support for Git, Subversion, Mercurial, WebDAV
- a simple with fine-grained access control
- self-hosted solution provided from GitHub
- self-hosted refrom Atlassian. Good integration with JIRA and other Atlassian products
- a popular open-source Git (CE) with paid support option (EE).
- recent offer from Jetbrains, a famous developer-oriented software company. Code repository hosting feature pending. Free for 10 users. Good integration with YouTrack and TeamCity
Upsource is no longer available as a commercial product as of February 1, 2022.
- a self-hosted Git Service written in Go.
- a community managed fork of Gogs, lightweight code hosting solution written in Go.
- Self-hosted Git Server with Kanban and CI/CD
- a GitHub clone powered by Scala.
- Pure Java Stack for managing, view, and serving Git repositories.
- an open source implementation of project hosting platform
- an integrated set of powerful tools to help companies build higher quality software
Effective June 1, 2021: Phabricator is no longer actively maintained.
- a platform delivering enterprise source code management
- a tasty, self-hostable Git server for the command line
- the most well-known Git workflow model
- a simple branching model with a single master
- an interesting branch model which delays the final merge to production branch, adopted by Alibaba. more article (in Chinese text) at ,
- Inspired by Gerrit workflow, Agit-flow is a centralized git workflow and used in Alibaba’s internal source code platform
- a framework for managing and maintaining multi-language pre-commit hooks.
- modern native Git hooks made easy.
- a extendable Git hook manager written with Ruby.
- fast and powerful Git hooks manager for any type of project.
- A simple and easy-to-use, yet powerful and language agnostic git hook for monorepos.
- a fast, Unix'y, opinionated Git hook runner.
- lists more than 20 git addons including all available commands
- a tool to manage multiple version control repositories
- a tool to help in dealing with multiple git repositories
- a tool to make changes in multiple repositories simultaneously
- Bulk processing of git repos
- a tool for managing multiple git repositories
- a simpler, faster alternative to git-filter-branch for cleansing bad data out of your Git repository history
- collection of gitignore files for various programming language
- a collection of tools to let /etc be stored in a git repository
– git utilities adding useful git commands.
- Another collection of useful git commands.
- a tool for following lifetime changes of a file throughout the history of a Git repository.
- a command line tool to find sensitive information lingering in publicly available files on GitHub
- a FUSE file system that fully integrates with git
- an experimental version of Git that changes some of Git's underlying concepts
— Organization for remote repositories
- An informative and fancy bash prompt for Git users
- a set of tools for parsing messages from git histories
- Automate releases for Git repositories and/or npm packages. Changelog generation, GitHub/GitLab releases, etc.
- Backup repos from various hosters to local or other hosters.
- git commit --fixup
, but automatic
- Convert your git log to JSON.
- a tool to backup your Bitbucket, GitHub and GitLab repositories.
- scheduled backups of repositories from popular providers with change detection.
- text-mode interface for git.
- practical solution for versioning large files. supported by GitHub
- solution for managing very large Git repository while maintaining speed and efficiency of most operations. in developement by Microsoft.
- allow managing large binaries among machines, as if operation a normal git repository. possible to creates a synchronised folder with .