Skip to content

notes #1

@zendannyy

Description

@zendannyy

curl -u 'username' https://api.github.com/user/repos -d '{"name":"}'

or
create repo in UI first
then follow https://help.github.com/en/articles/adding-an-existing-project-to-github-using-the-command-line

from local dir
git init
git add
git commit -m ""

git remote add origin repo URL
git remote -v

git push origin master
git push -u origin master

if getting
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
try the following
Test_Scripts git:(master) ✗ git pull https://github.com/zendannyy/Test_Scripts.git
git commit -m ""
git push -u origin master

workaround for *** Please tell me who you are. error
git config user.email "insert github email here"
git config user.name "insert github real name here"

create in UI
then
clone repo
cd into repo dir

echo "# workflow" >> README.md
'% ➜ git init

git add README.md
git commit -m "adding readme"
[master (root-commit) 845f383] adding readme
1 file changed, 1 insertion(+)
create mode 100644 README.md
git remote add origin https://github.com/zendannyy/workflow.git
fatal: remote origin already exists.
git push -u origin master

Provide a central location where we can accumulate knowledge, scripts and links to other resources

#!/bin/bash

from local dir

chmod +x
git init
git fetch
git add -A
git commit -m "updating"

git remote add origin repo URL

git remote -v

git pull
git push -u origin master

git rm --cached # to remove dupes,etc
git rm --cached -r dir # if it is a dir to remove

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions