Skip to content

jagpreetrahi/JavaScript_Code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

  1. 'git init' -> It createa a .git folder that has all the relevant info to manage the version of our project.

  2. 'Working Area' -> There can be some files are not currently managed by git which means that changes done or to be done in those files are not managed by git yet. When we do 'git status' and see the untracked files then those are actually called to be in working area.

3.'Staging Area' -> which files are going to be a part of next version that will create . In this area git knows what changes will be done from prev version to next version.

4.'Repository Area' -> This area actually contains the details of all the previous registered version.

  1. 'git add ' -> moves from working to staged area.

  2. 'git rm --cache ' -> moves back to working aread from staging area.

  3. 'Commit' -> It is a particular version of the project.

  4. 'git commit' -> register staging changes to repository area or commit.

  5. 'git log' -> list down all the commits of the repo.

  6. 'git restore --staged ' -> It removes all files changed from staging to working area. This is only works if changes are in our staging area.

  7. 'git restore ' -> It removes all file changes from the staging area to commited .

  8. '' -> If we don't want to commit by using vim editor then we can use command like that : 'git commit -m'

  9. 'git remote' -> list down all the remote connection names.

  10. 'Remote Connection' -> It helps to link two git repo for uploading and downloading changes from each

  11. 'git remote add

-> This command helps to add a new link to the remote repo and give a name to it.
  1. ' git remote rm ' -> this command deletes a remote connection .

  2. 'git remote rename '.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published