Git:
- distributed version control system
- originally authored by Linus (of Linux fame)
- UNIX philosophy of many small chainable tools
Github:
- online hosting for git repositories
- CI, issues, merging, forking, releases, remote
- Contributing to open source
- Literacy
- Bug finding
- Code health
Pros
- Redundancy
- Independent working
- Local = fast
- Offline
Cons
- Stale checkouts
- Manual merging
Github is a remote, which hosts the remote repo. The act of creating your local checkout is called cloning. Commits are changesets. When you and someone else have conflicts, merging creates a commit to resolve those conflicts. When you rebase, you temporary remove your commits, update or fast-forward the branch they're on, and re-apply your commits.
Ubuntu
sudo apt install git-all
More info here
git clone [email protected]:cti-one/git-demo.git
- Get most recent changes
git pull --rebase
A regular pull:
A rebase pull:
2. Commit changes
git commit -m 'message'
- Push changes
git push
- Communication
- Feature branching (optional)
- Use the organization, email me for help