Last active
August 29, 2015 14:14
-
-
Save ronsuez/290293efd55314d7098c to your computer and use it in GitHub Desktop.
Git Course - Basic Usage
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
git init | |
touch hello_world.txt | |
echo "hello-world" >> hello_world.txt | |
git add. | |
git commit -m "first commit" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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