8000 GitHub - wjb321/github_test: git commands
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

wjb321/github_test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

basic pull and push: pull:

git status git pull

push:

git add *
git commit -m "update info"
git push origin -u main

basic for checking username and user email

git config user.name
git config user.email

git config --global user.name
git config --global user.email
(sometime user has two git account, when push some files remotely, the commits is not the using account, so change with up command)

basic address:

cd file
cd ..
... when do this:

git add .

and then find some file is not needed to be updated to cash do this:
the reference is reference of remove files/folder from github

explainition: first make sure cd the address, the format should same like local git: /e/jiabin_github/TTCan-/???/the file want to be deleted, then do git rm -r/ -r -f......

git rm --cached c/test/folder/ -r

then all the files will be removed from cash, or you can remove some files respectively.
examples in gitbatch:
hoshiraku@DESKTOP-I6SK8BP MINGW64 /e/jiabin_github/Thesis_TTCAN- (main)
$ git rm -r PWMNode+LVGL_v1/OBJ

when doing brancH
1. create branch

git branch branch_Name

2. switch branch

git checkout branch_Name

3. merge the git

git merge

4. quit the branch and go to main branch

git checkout main

git rebase reference of git rebase

About

git commands

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0