2023-01-23 07:19:42 -05:00
|
|
|
|
|
|
|
---------------------------------------------------------------------------------------
|
|
|
|
Clone this repository Need help cloning? Visit Help.
|
|
|
|
|
|
|
|
https://git.codingvm.codes/dieantwoord/Discord-Bot-Python.git
|
|
|
|
|
|
|
|
---------------------------------------------------------------------------------------
|
|
|
|
Creating a new repository on the command line
|
|
|
|
|
|
|
|
touch README.md
|
2023-01-23 07:22:57 -05:00
|
|
|
```
|
2023-01-23 07:19:42 -05:00
|
|
|
git init
|
2023-01-23 07:22:57 -05:00
|
|
|
``````
|
2023-01-23 07:19:42 -05:00
|
|
|
git checkout -b main
|
2023-01-23 07:22:57 -05:00
|
|
|
``````
|
2023-01-23 07:19:42 -05:00
|
|
|
git add README.md
|
2023-01-23 07:22:57 -05:00
|
|
|
``````
|
2023-01-23 07:22:00 -05:00
|
|
|
git commit -a -m "first commit"
|
2023-01-23 07:22:57 -05:00
|
|
|
``````
|
2023-01-23 07:19:42 -05:00
|
|
|
git remote add origin https://git.codingvm.codes/dieantwoord/Discord-Bot-Python.git
|
2023-01-23 07:22:57 -05:00
|
|
|
``````
|
2023-01-23 07:19:42 -05:00
|
|
|
git push -u origin main
|
2023-01-23 07:22:57 -05:00
|
|
|
```
|
2023-01-23 07:19:42 -05:00
|
|
|
---------------------------------------------------------------------------------------
|
|
|
|
Pushing an existing repository from the command line
|
|
|
|
|
|
|
|
git remote add origin https://git.codingvm.codes/dieantwoord/Discord-Bot-Python.git
|
2023-01-23 07:22:00 -05:00
|
|
|
|
2023-01-23 07:19:42 -05:00
|
|
|
git push -u origin main
|
|
|
|
|
2023-01-23 07:22:00 -05:00
|
|
|
---------------------------------------------------------------------------------------
|
|
|
|
Update changes
|
|
|
|
|
2023-01-23 07:22:57 -05:00
|
|
|
git commit -a -m "Update to main"
|
2023-01-23 07:22:00 -05:00
|
|
|
|
|
|
|
git push -u origin main
|
|
|
|
|
|
|
|
---------------------------------------------------------------------------------------
|