Repository to collect (some but not all) student work for General Assembly's Data Science course in DC. To contain many great things!
- Fork the primary gadsdc2 repo on GitHub
git clone URL_of_your_fork
: copy your fork to your local computer (automatically defines your fork as the remote origin)cd gadsdc2
: change into the gadsdc2 subdirectory that was just createdgit remote add upstream URL_of_main_repo
: define the primary gadsdc2 repo as the remote upstream
git checkout master
: switch to the master branch of your local repogit pull upstream master
: fetch changes from the master branch of upstream, and merge those changes into your working branch (which is currently master)git checkout -b name_of_branch
: create a new topic branch and switch to it- Do your assignment
git add .
orgit add name_of_file
: stage file modifications, additions, and deletionsgit commit -m "message about commit"
: commit any changes that have been stagedgit push origin name_of_branch
: push your branch (and its commits) to the origin- Switch to name_of_branch on your GitHub account and submit a pull request: ask the upstream to merge your changes into its master branch
git status
: view the status of files in your repo (untracked, modified, staged)git log
: view the detailed commit history (typeq
to quit)git log -1
: only show the last commit (you can use any number)git log --oneline
: show each commit on a single line
git branch
: view the list of local branchesgit remote -v
: view your remotes- Detailed reference guide