Skip to content

Instantly share code, notes, and snippets.

@ronsuez
Last active August 29, 2015 14:14
Show Gist options
  • Save ronsuez/290293efd55314d7098c to your computer and use it in GitHub Desktop.
Save ronsuez/290293efd55314d7098c to your computer and use it in GitHub Desktop.
Git Course - Basic Usage
#!/bin/bash
git branch <new-branch> <origin-branch>
git checkout <new-branch>
echo "my new changes from <new-branch>" >> hello_world.txt
git add .
git commit -m "first commit for my new feature"
#!/bin/bash
git init
touch hello_world.txt
echo "hello-world" >> hello_world.txt
git add.
git commit -m "first commit"
#!/bin/bash
git clone https://github.com/guayana-backend-nodejs/git-talk.git
echo "my new changes" >> hello_world.txt
git add.
git commit -m "first commit"
git push -u origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment