Skip to content

Pramanik4/git-github

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Learning Git

Git Commands

  • Clone

Cloning the repository means coping the repository from github to a local computer.

image

  • ls

image

  • Create a file using window command

image

  • git status -> It will display which files have been modified and need to be added to the staging area, as well as which files are staged and ready to be committed.

  • staging area -> IT is a temporary storage area where changes to your files are kept before they are committed to the repository.

To push a file to a github repository

create a file

git add (here filename with extension)

git commit -m 'add readme part inside this quote'

git log

git push

To push the same file which has been modified

git status

git add

git commit

git push

  • undo the uncommited changes

git checkout -- . -> will undo the changes made

  • undo the commited change

**git revert (here paste the commited link which you can get it from git log)

  • Resetting the code change

**git reset (paste the link here from where you wanna do reset)

Create a branch

image

image

Merging braanches

image

Delete a branch

image

Remove the commited file from github

image

Remove the Multiple commited file from github

remove the commited file from github

About

It's all about learning git and github

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages