history: Know exactly which files changed, who made those changes, and when those changes occured. backup: Ability to have different versions of the code in different places. collaboration: Collaborate easily with other people on the same codebase
my first git: repositories, staging, committing git good: branching, jumping around, merging git world: enter in the repository world git ideas: cool stuff to do with git open sourcing: the idea that it’s a changing.
what is a repository? A repository is like any other folder on your computer, it can contain any type of file and works in exactly the same way… Except: It has a hidden file named ".git" that stores the history of that folder
more about commits Bc7fd9 “Add Oranges” a3ffde “Add apples” 9cd1ce “First commit, Add fruit.txt” Commits form a linked list structure which shows what you have done over time. Use git log to see your commit history.
my first git: recap $ git init - converts a folder to a super smart git repository. $ git add - adds the files to the staging area. $ git commit - creates a snapshot of the repository. $ git reset - Undo your commit or unstage your files. $ git log - View your commit history. $ git status - See the current status of the repository
working with branches $ git branch - see a list of all available branches. $ git branch - create a new branch with the desired name, based on the current branch.
merging = combining commits $ git merge - creates a new commit that combines the last commit of the current HEAD branch with the last commit of the desired branch.
git good: recap... $ git branch - List all existing branches $ git branch - creates a new branch $ git checkout - jump to the branch with this name $ git merge --no-ff - merge the branch with this name into the current one.
downloading / updating Repos $ git clone - downloads a copy of a remote git repository. $ git pull - download and merge new data from the remote $ git push - sends your version to the server.
Collections on open and explore the vast world of repositories that exist. I'm sure you'll be surprised! Social Impact Learn to Code Organizations Open Journalism and much more...
Events on open and participate in events that happens around the world in prol of the open source. and much more... 24 Pull Requests Hacktoberfest GitHub Field Day