Skip to content

Instantly share code, notes, and snippets.

@zgulde
Last active September 17, 2018 17:14
Show Gist options
  • Save zgulde/ca0714215f88ec8f119c68771e5b0ffd to your computer and use it in GitHub Desktop.
Save zgulde/ca0714215f88ec8f119c68771e5b0ffd to your computer and use it in GitHub Desktop.

Getting Work on GitHub | First time repo setup

  1. Create the repo

    git init
    
  2. Add and commit your files

    git add .
    git commit
    
  3. Add a remote and push to GitHub

    git remote add ...
    git push origin master
    

Day to day git workflow

  1. Make changes to files...

  2. Add and commit the changes you've made

    git add FILE1 FILE2
    git commit 
    
  3. Push the changes up to GitHub

    git push origin master
    

Miscelanneous

  • Moving all files with a certain extension to a directory

    mv *.ipynb codeup
    
  • Creating the atom command

    ln -s /Applications/Atom.app/Contents/Resources/app/atom.sh /usr/local/bin/atom
    chmod +x /usr/local/bin/atom
    
  • Changing the default git commit editor

    git config --global core.editor 'atom -n -w'
    
  • Codeup curriculum on the git cli

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment