Skip to content

AaronLauZR/Git-Commands

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 

Repository files navigation

Push/Pull Terminal Command

Tip

git status - Check tracked or untracked project files and the changes.

Steps

  1. Push the Project to Github
    • cd C:\...\...\...
    • git checkout -b "branch name"
    • git add .
    • git commit -m "message"
    • git push origin "branch name"
  1. Create Pull Request in Github

    • Go to Github
    • Click "New Pull Request"
    • Click "Create Pull Request"
  2. Merge with Master Files

    • Click "Merge Pull Request"
    • Click "Confirm"
    • Click "Delete Branch"
  3. Pull the Merged Files from Github

    • Back to Software
    • git checkout master
    • git pull
    • git branch -D "branch name"

Upload Large Files

Note

Complete Below Steps in Command Prompt

Steps

  1. Install Upload Large File Github Command

    • git lfs install
  2. Locate Large File

    • cd C:\Users\...
    • git lfs track '*.bak'
    • git lfs push --all origin main
    • git add .
  3. Upload to Github

    • git commit -m "message"
    • git push -u origin master

Edit Commit Date/Time

Note

Complete Below Steps in Command Prompt

Steps

  1. Locate to Local Repository Folder

    • cd ...
    • git branch
  2. Edit First Commit Date & Time

    • git commit --amend --no-edit --date="YYYY-MM-DD HH:MM:SS"
  3. Edit Latest Commit Date & Time

    • set GIT_AUTHOR_DATE=YYYY-MM-DD HH:MM:SS
    • set GIT_COMMITTER_DATE=YYYY-MM-DD HH:MM:SS
    • git commit --amend --no-edit

About

Github Instruction

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published