Skip to main content
edited body
Source Link

For anyone trying to figure out the complete process via the command prompt CLI, here it is:

#1 Install GitHub CLI(gh command) on your local PC if it's not done already

winget install --id GitHub.cli


#2 From console go to your root project path:

cd "C:\Users\jctor\<MY_PROJECT_ROOT>"


#3 Check gh command is recognized on your console.

gh --version


#4 Authenticate first to your remote github dashboard via HTTPS token or 
SSH key(follow prompt)

gh auth login


#5 Execute the "gh command" to create a remote repository in your gitHub 
using the local source code and project's name. 
(source=means root path of project's source code, public= visibility of remote) 

gh repo create --source=. --public --description "Kotlin cours "


#6 Push the local commits to the brand new remote reporitoryrepository on your github 
dashBoard

git push --set-upstream origin main

Done! your remote git repository is up and running !

For anyone trying to figure out the complete process via the command prompt CLI, here it is:

#1 Install GitHub CLI(gh command) on your local PC if it's not done already

winget install --id GitHub.cli


#2 From console go to your root project path:

cd "C:\Users\jctor\<MY_PROJECT_ROOT>"


#3 Check gh command is recognized on your console.

gh --version


#4 Authenticate first to your remote github dashboard via HTTPS token or 
SSH key(follow prompt)

gh auth login


#5 Execute the "gh command" to create a remote repository in your gitHub 
using the local source code and project's name. 
(source=means root path of project's source code, public= visibility of remote) 

gh repo create --source=. --public --description "Kotlin cours "


#6 Push the local commits to the brand new remote reporitory on your github 
dashBoard

git push --set-upstream origin main

Done! your remote git repository is up and running !

For anyone trying to figure out the complete process via the command prompt CLI, here it is:

#1 Install GitHub CLI(gh command) on your local PC if it's not done already

winget install --id GitHub.cli


#2 From console go to your root project path:

cd "C:\Users\jctor\<MY_PROJECT_ROOT>"


#3 Check gh command is recognized on your console.

gh --version


#4 Authenticate first to your remote github dashboard via HTTPS token or 
SSH key(follow prompt)

gh auth login


#5 Execute the "gh command" to create a remote repository in your gitHub 
using the local source code and project's name. 
(source=means root path of project's source code, public= visibility of remote) 

gh repo create --source=. --public --description "Kotlin cours "


#6 Push the local commits to the brand new remote repository on your github 
dashBoard

git push --set-upstream origin main

Done! your remote git repository is up and running !

Source Link

For anyone trying to figure out the complete process via the command prompt CLI, here it is:

#1 Install GitHub CLI(gh command) on your local PC if it's not done already

winget install --id GitHub.cli


#2 From console go to your root project path:

cd "C:\Users\jctor\<MY_PROJECT_ROOT>"


#3 Check gh command is recognized on your console.

gh --version


#4 Authenticate first to your remote github dashboard via HTTPS token or 
SSH key(follow prompt)

gh auth login


#5 Execute the "gh command" to create a remote repository in your gitHub 
using the local source code and project's name. 
(source=means root path of project's source code, public= visibility of remote) 

gh repo create --source=. --public --description "Kotlin cours "


#6 Push the local commits to the brand new remote reporitory on your github 
dashBoard

git push --set-upstream origin main

Done! your remote git repository is up and running !