40 lines
2.1 KiB
Markdown
40 lines
2.1 KiB
Markdown
Github is one of the largest and most popular version control & codebase hosting site in the world. This website is the OG for uploading your code somewhere basically for all to see. Other versions include Gitlab, Bit Bucket, and more.
|
|
|
|
There is also this site called Githubplus for quick downloading of anything on github. As well as [a site that generates](https://github-contributions.vercel.app/) all your github contributions in a single image!
|
|
|
|
- This is the quick [cheatsheet for all things github ](https://upengareri.github.io/notes/git_cheatsheet/) through your terminal
|
|
- I have made a personal more in-depth [git commands sheet ](https://docs.google.com/document/d/1am1D9IryCxSWAA6a0RcdeW6EPZYqKkNIUqmXtxDtaBE/edit?usp=sharing)as well for reference.
|
|
- Although head over to [Git](obsidian://open?vault=enter&file=Coding%20Tips%20(Classical)%2FTerminal%20Tips%2FCLI%20Tools%2FGit) on here for more usage info
|
|
- [19 Must Know Github Repos for Programmers](https://x-team.com/blog/github-repos-for-programmers/) is a useful resource to get started! No better way to learn than by directly doing :)
|
|
|
|
|
|
|
|
###### Git-Bundle:
|
|
```
|
|
# git bundle
|
|
# Package objects and references into an archive.
|
|
# More information: <https://git-scm.com/docs/git-bundle>.
|
|
|
|
# Create a bundle file that contains all objects and references of a specific branch:
|
|
git bundle create path/to/file.bundle branch_name
|
|
|
|
# Create a bundle file of all branches:
|
|
git bundle create path/to/file.bundle --all
|
|
|
|
# Create a bundle file of the last 5 commits of the current branch:
|
|
git bundle create path/to/file.bundle -5 HEAD
|
|
|
|
# Create a bundle file of the latest 7 days:
|
|
git bundle create path/to/file.bundle --since=7.days HEAD
|
|
|
|
# Verify that a bundle file is valid and can be applied to the # current repository:
|
|
git bundle verify path/to/file.bundle
|
|
|
|
# Print to the standard output the list of references contained in a bundle:
|
|
git bundle unbundle path/to/file.bundle
|
|
|
|
# Unbundle a specific branch from a bundle file into the current repository:
|
|
git pull path/to/file.bundle branch_na
|
|
```
|
|
|
|
via [cheat.sh](https://cheat.sh/git-bundle) |