Skip to content

ThomasRey1/GitCommands

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 

Repository files navigation

#GIT COMMANDS


START : //In local folder

  1. git init //Init the "local dataBase" of git

CONFIG :

  1. git config --global user.email "email" //set the email
  2. git config --global user.name NAME //set the name of github account

PUSH :

  1. git remote add origin [REMOTE_DEPOSITORY_LINK] //Add a remote repository origin to PUSH / PULL folder/s

  2. git status //Define the folders which were modified and so sendable to the remote repository

  3. git add //ADD a folder/s to the list of futur pushing items * // ALL . // ALL [SOME_FOLDER] // One folder

  4. git commit -m "Some description text" //Setup a description of why pushing items

  5. git branch -M [BRANCH_NAME] //Create or change the active branch

  6. git push //Push the folder/s added into the list before in the remote repository --force //Force the push origin [BRANCH_NAME]


PULL :

  1. git remote -v //Check what are the origins

  2. git branch -r //Check what are the branch which can be used ex : origin/master

  3. git fetch origin [BRANCH_NAME] //Pull remote branch to local and switch branches

  4. git clone [REMOTE_DEPOSITORY_LINK] //Clone a repository from the remote repository into a local folder

  5. git pull


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors