diff --git a/README.md b/README.md index 984ba86..9ab5b5a 100644 --- a/README.md +++ b/README.md @@ -8,3 +8,21 @@ Don't copy unless you know what you're doing. But if you insist... - ??? - profit +## Creating a new repository on the command line +``` +touch README.md +git init +git checkout -b main +git add README.md +git commit -m "first commit" +git remote add origin http://192.168.138.7/jking/dotcfg.git +git push -u origin main +``` + +## Pushing an existing repository from the command line +``` +git remote add origin http://192.168.138.7/jking/dotcfg.git +git add * +git branch -M main +git push -u origin main +``` \ No newline at end of file