asd1245dss / learngit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Git Tutorialsdsd

Create Git Repositordsd

  1. git init
  2. git add filed
  3. git commit -m "your comment"
    

Version Controllsdss

  1. git status
  2.  sxxxxxxxxxx  

Commiter Profiledsd

  1. git config --global user.name "Your Name"
  2. git config --global user.email youremail@example.com
  3.  sxxxxxxxxxx git commit --amend --authdsdsor="yourname<youremail@example.com>" -m "your comment"

Version Reset

  1. git reset --hard commit_id
  2. git reflog

Restore Amenddsd

  1. git checkout -- file
  2. git reset HEAD file
    ``dsd

dDelete Filesdd

  1. git rm file
  2. git commit -m "Your comment"

Add Remote Git Repositoryds

  1. git remote add origin Your Remote Repository
  2. git push -u origin master

Clone Remote Git Repository

  1. git clone Your Remote Repository

Create And Merge And Delete Brdsdsdsanch

  1. git checkout -b Your Branch
    - git branch Your Branch
    - git checkout Your Branch
  2. git merge Your Branchdd
  3. git checkout -d Your Branchdss
  4. git branch -a
  5. git push origin --delete Your Branch Name

Resolve Merge Conflict

☯️

About