Skip to content

penfold1992/Hello-World

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

11 Commits
Β 
Β 

Repository files navigation

Contents

Git Commands

For use on git bash.

Creating a Repo

Creation

$ 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

Commit your files

$ 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"

Push the 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

Fork a Repo

Clone a Repo

$ git clone https://github.com/username/Spoon-Knife.git
# Clones your fork of the repository into the current directory in terminal

Congifure Remote

$ 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

Additional tools

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

Readme tips

Task Lists

Task lists can be created by entering

 - [x] Task 1
 - [ ] Task 2
 - [ ] Task 3
  • Task 1
  • Task 2
  • Task 3

Emoji's

  1. πŸ‡¬πŸ‡§ - :uk:
  2. ❌ - :x:
  3. 😩 - :weary:
  4. ⚠️ - :warning:
  5. πŸ”“ - :unlock:
  6. πŸ‘Ž - :-1:
  7. πŸ‘ - :+1:
  8. πŸ‘ - :clap:

More can be found here:

Syntax Highlighting

More can be found here:

###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

About

Initialization of GitHub

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published