Skip to content

karock5345/luckdraw

Repository files navigation

Setup new git repo

Create new repo on github.com

Open the web browser login github.com

New the repo named e.g. aqs8server

Local source code prepare

Download and install git: https://git-scm.com/downloads

# download git and setup
git --version
git config --global --list
git config --global user.name "xxx"
git config --global user.email "xxx.email.com"
git config --global user.password "xxx"

Upload your first commit:

# Create local Git repo:
cd \Projects\\
git init draw [proj folder]
# if folder not exist, it will create new folder
# and hidden folder aqs\.git will be created
cd draw
git add .
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/karock5345/luckdraw.git
git push -u origin main
# ! [rejected]        main -> main (fetch first)
# error: failed to push some refs to 'https://github.com/karock5345/djchannels4.git'
# hint: Updates were rejected because the remote contains work that you do
# hint: not have locally. This is usually caused by another repository pushing
# hint: to the same ref. You may want to first integrate the remote changes
# hint: (e.g., 'git pull ...') before pushing again.
# hint: See the 'Note about fast-forwards' in 'git push --help' for details.

# change 'origin' -> other remote name e.g. 'remote-rvd'

Commit new version to github

Open vscode -> open the project -> Source Control (Crtl + Shift + G) -> add some text on "Message" e.g. fixed bug xxx -> ... -> commit -> commit all

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published