kunalnitt.github.io

Home Page

View on GitHub

!!…Welcome to CookieMonster’s Repository…!!

r-project - Contains files for R practice
ds-java - Data Structure Practice with Java
ds-python - data structure in python

Basic GIT Commands

Initilise a new local git repository

git init

Link a local git repository to your github repository

git remote add origin <repository_url>

Clone a repository

git clone <repository_url>

Get latest changes

git fetch

Switch Branch

git checkout <branch>

Pull latest changes into your code

git pull

Look for changes done

git status

Add all files for staging

git add --all

Commit the code with commit message

git commit -m "commit message"

Push to the repository

git push