- Note taken on [2024-05-08 Wed 15:31]
To be delivered <2024-05-21 Tue> and <2024-05-28 Tue>.
- Note taken on [2024-05-17 Fri 17:24]
Meeting with Linus Tata. - Note taken on [2024-05-17 Fri 17:19]
To action.
- [ ] Next work, Push, pull, branches, tag, merge.
- [ ] In tutorial part 1, ensure download is https.
- [ ] In config, set the default editor to be
nano -w
. - [ ] Command
open .
is mac equivalent toexplorer .
on windows. - [ ] Change
git reset
togit restore --staged
. - [ ] For credentials help, link the Intro to git course.
(command line for demos)
Pre-requisites:
- git
- Terminal
- Git Bash on Windows (installed with git)
- GitHub account
- VS Code (or an editor that we can call from the command line)
git --version
- git config - username and e-mail address
- Connect to github
- Create a new directory and move to it in the terminal
- In the terminal check the version of git
- Set up username and e-mail for git
- On GitHub, create a new repository and type the lines into the shell
- Add extra text to the file; check
git status
, add files then make a new commit (use the longer form of the git message) - Tag this commit
- Push commit and the tag - have a look at this on GitHub
- Create a new branch, checkout the new branch, add a new file, commit
- Check
git log --oneline --all --graph
- On GitHub add a new commit on main - pull this locally
- Merge the branch into main and push
- Delete the branch
- Getting help on git commands
- Init
- Add
- See what will be added
- Commit
- What makes a good commit message
- Viewing the project history
- Viewing an individual commit log
- Ignoring files
- gitk
- Note taken on [2024-05-14 Tue 17:21]
Added as section 4 - maybe move this to after a section on staging area.- Git config command, git config file.
- How to see your global config
- Aliases
- How to set an alias for git st
- How to set up an alias for a terse git log
- What is a remote
- How to view the full path of remotes
git remote show origin
- Alternative to GitHub
- Creating branches
- Changing branches
- Deleting branches
- Dealing with merge conflicts
- amend
- unstage
- reset to unmodified version
- Forking and cloning repositories
- What makes a good commit message (recap)
- Issues and pull requests
- Merging on github
- contributing document
- Licenses
- Collaboration workflows
- Open source projects
- Common courtesy
- Rebasing on branch
- Rebasing onto another branch
- How to get unstuck: reflog
- Alternative to git (SVN, mercurial)
- Git log “pick-axe”
- Cherry-pick
- Git hooks
- GitHub actions
- Signing commits
- Other forms of authentication/credential storage
- git bisect
- GitHub-LFS
- Submodules
- Reduced clones (sparse-checkout, filtered checkout)
- git blame
- git ls-remote