Git Notes
Repositories
Section titled “Repositories”-
Clone a remote repository to a local repository:
git clone <remote-repository-url> <optional-dir>git clone https://github.com/Ross-Thanscheidt/Notes.gitcd Notesgit clone https://github.com/Ross-Thanscheidt/Example.git MyExamplecd MyExample -
Clone a remote repository using GitHub CLI:
gh repo listgh repo clone Notescd Notes -
Get URL of the remote repository in the local repository:
git remote get-url origin -
Update local repository from remote repository
-
Safe - merge commits from remote repository with local master branch
git fetchgit rebase -
Aggressive - fetch and rebase without reviewing downloaded changes
git pull
-
Resources
Section titled “Resources”- git/git: Git Source Code Mirror
- Git SCM (Source Code Management)
- Experiment on your code freely with Git worktree
- Git Quick Reference
- Think Like (a) Git
- The Thing About Git
- PeepCode Git Internals PDF by Scott Chacon
- Git for Windows (GitHub Repository)
- posh-git by Keith Dahlby - A PowerShell environment for Git (GitHub Repository)