Loading lesson path
Git
Git Tutorial focused on Git and GitHub Introduction and related concepts.
Git is a free, open source tool that helps you save and manage different versions of your files and code.
Git is a popular version control system.
You can download Git for free from git-scm.com .
Now let Git know who you are.
Lets create our first repository
A new file is a file that you have created or copied into your project folder, but haven't told Git to watch.
The staging environment (or staging area ) is like a waiting room for your changes.
A commit is like a save point in your project.
- git tag <tagname> - Create a lightweight tag - git tag -a <tagname> -m "message" - Create an annotated tag - git tag <tagname> <commit-hash> - Tag a specific commit - git tag - List tags - git show…
- git stash - Stash your changes - git stash push -m "message" - Stash with a message - git stash list - List all stashes - git stash branch <branchname> - Create a branch from a stash
Git keeps a detailed record of every change made to your project.
Git has many commands and options.
In Git, a branch is like a separate workspace where you can make changes and try new ideas without affecting the main project. Think of it as a "parallel universe" for your code.
Merging in Git means combining the changes from one branch into another.
- Working Directory - Where you make changes - git add - Stage changes - git commit - Save changes to your repository - git push - Share changes with others - git status - Check what's going on - Und…
- Commit Often - Write Clear Commit Messages - Use Branches - Pull Before You Push - Review Changes Before Committing - Keep Repositories Small - Use .gitignore - Tag Releases
This glossary covers common Git terms and concepts. Use it as a handy reference while learning and working with Git.