- Git Commands
- Creating a Repo
- Creation
- Commit your files
- Push the commit
- Fork a Repo
- Clone a Repo
- Configure Remote
- Additional Tools
- Readme tips
- Task Lists
- Emoji's
- Syntax Highlighting
- Visual Basic
For use on git bash.
$ mkdir ~/Hello-World
# Creates a directory for your project called "Hello-World" in your user directory
$ cd ~/Hello-World
# Changes the current working directory to your newly created directory
$ git init
# Sets up the necessary Git files
# Initialized empty Git repository in /Users/you/Hello-World/.git/
$ touch README
# Creates a file called "README" in your Hello-World directory
$ git add README
# Stages your README file, adding it to the list of files to be committed
$ git commit -m 'first commit'
# Commits your files, adding the message "first commit"
$ git remote add origin https://github.com/username/Hello-World.git
# Creates a remote named "origin" pointing at your GitHub repository
$ git push origin master
# Sends your commits in the "master" branch to GitHub
$ git clone https://github.com/username/Spoon-Knife.git
# Clones your fork of the repository into the current directory in terminal
$ cd Spoon-Knife
# Changes the active directory in the prompt to the newly cloned "Spoon-Knife" directory
$ git remote add upstream https://github.com/octocat/Spoon-Knife.git
# Assigns the original repository to a remote called "upstream"
$ git fetch upstream
# Pulls in changes not present in your local repository, without modifying your files
Pushing a commit back to your remote repository on github
$ git push origin master
# Pushes commits to your remote repository stored on GitHub
Pull in upstream changes
$ git fetch upstream
# Fetches any new changes from the original repository
$ git merge upstream/master
# Merges any changes fetched into your working files
More information can be found at these links:
Links |
---|
Create a repo |
Fork a repo |
Github Guides |
Youtube Github Guides |
Task lists can be created by entering
- [x] Task 1
- [ ] Task 2
- [ ] Task 3
- Task 1
- Task 2
- Task 3
- π¬π§ -
:uk:
- β -
:x:
- π© -
:weary:
β οΈ -:warning:
- π -
:unlock:
- π -
:-1:
- π -
:+1:
- π -
:clap:
###Visual Basic
```vb.net
Dim num1 As Integer
Dim num2 As Integer
'Testing VB Commenting
num1 = 5
num2 = 10
debug.print num1 + num2
```
Will produce:
Dim num1 As Integer
Dim num2 As Integer
'Testing VB Commenting
num1 = 5
num2 = 10
debug.print num1 + num2