0% found this document useful (0 votes)
43 views2 pages

Basic Github

This document provides a basic guide to using Git and GitHub, including commands for cloning repositories, pushing changes, and managing branches. It outlines steps for creating a new repository, initializing a local repository, and syncing files between local and remote repositories. Key commands such as git status, git add, git commit, and git merge are also explained.

Uploaded by

Achmad Rofiq
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
43 views2 pages

Basic Github

This document provides a basic guide to using Git and GitHub, including commands for cloning repositories, pushing changes, and managing branches. It outlines steps for creating a new repository, initializing a local repository, and syncing files between local and remote repositories. Key commands such as git status, git add, git commit, and git merge are also explained.

Uploaded by

Achmad Rofiq
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

BASIC GITHUB

1. git clone <remote repository website> to fetch ( download / copy ) all file in remote
repository to local
2. git push
3. exit

1. Make New Repository on github.com (remote repository)

2. Return to local storage


3. Open git bash on directory you wanna (right click on folder)
4. git init (initialized empty git repository on local repository)
5. git remote add origin “<remote repository website>” add remote repository as origin

6. git pull origin <brach_name > to fetch ( download / copy ) all file in remote repository to local
repository
7. git push origin <brach_name> to upload all file in local repository to remote repository

git status : check file status on active branch

git add <filename> : take spesific file in staging to commit

git commit –m “<description>” : commit spesific staging

git add –A : take all file in staging to commit

git commit –a –m “<description>” : commit all staging

git branch : check on active branch

git branch <branch_name>: make new branch

git checkout <branch_name>: pick active branch

git merge <branch_name>: merge file in branch_name to master branch

git branch -d <branch_name>: delete branch_name

You might also like