47 lines
1.1 KiB
Markdown
47 lines
1.1 KiB
Markdown
|
|
---------------------------------------------------------------------------------------
|
|
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
|
|
```
|
|
```
|
|
git init
|
|
```
|
|
```
|
|
git checkout -b main
|
|
```
|
|
```
|
|
git add README.md
|
|
```
|
|
```
|
|
git commit -a -m "first commit"
|
|
```
|
|
```
|
|
git remote add origin https://git.codingvm.codes/dieantwoord/Discord-Bot-Python.git
|
|
```
|
|
```
|
|
git push -u origin main
|
|
```
|
|
---------------------------------------------------------------------------------------
|
|
Pushing an existing repository from the command line
|
|
```
|
|
git remote add origin https://git.codingvm.codes/dieantwoord/Discord-Bot-Python.git
|
|
```
|
|
```
|
|
git push -u origin main
|
|
```
|
|
---------------------------------------------------------------------------------------
|
|
Update changes
|
|
```
|
|
git commit -a -m "Update to main"
|
|
```
|
|
```
|
|
git push -u origin main
|
|
```
|
|
---------------------------------------------------------------------------------------
|