Skip to content

DustinCChen/dev_nestjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dev_nestjs

bug fixed

  • Q:PS D:\workdir\nodedev\github\dev_nestjs> git add . error: 'lesson1/backend/' does not have a commit checked out fatal: adding files failed
  • A:create lesson1\backend directory in remote repo,and git clone it,then repeat the push process.

git operation

# Initial config
git config --global user.name "dustin.chen"
git config --global user.email "[email protected]"
git config --global color.ui auto

# set SSH Key
ssh-keygen -t rsa -C "[email protected]"
cat ~/.ssh/id_rsa.pub # add SSH Key

# push to remote repo
git clone https://github.com/DustinCChen/dev_nestjs.git
cd dev_nestjs/
git add .
git commit -m "my first commit"
git push -u origin main
# sync remote repo update to local repo
git remote add origin https://github.com/DustinCChen/dev_nestjs.git
git pull origin main
git status
git checkout -- .

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published