Skip to content

lahiruroot/Git-it

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 

Repository files navigation

Git-IT 2023 FOSS NSBM

  • "GIT-IT," an exclusive GitHub session organized by the FOSS Community of NSBM in collaboration with Women in FOSS NSBM.

Download Git:

Logo

Git Configuration

git config --global user.name "John Doe"
git config --global user.email [email protected]

So, let's get started!

Git Commands

This command is used to obtain a repository from an existing URL.

Git clone <repository url>

Open repository in local storage

Cd <repository name>

Checkout a branch into your working tree

Git checkout -b name
git checkout branchname

List down branches

git branch

This command lists all the files that have to be committed.

git status

This command adds a file to the staging area.

git add .

This command records or snapshots the file permanently in the version history.

git commit -m 'commit message'

This command sends the committed changes of master branch to your remote repository.

git push
  • if we create a branch locally
git push --set-upstream origin <branch name>

This command is used to list the version history for the current branch.

git log

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages