DEV Community

Eliyahou
Eliyahou

Posted on

git-scm on Windows, GitHub contribution workflow

How to add/edit files to GitHub from my Windows environment:
first - download notepad
second - download git-scm
//Do not forget to choose Notepad as the default editing program

I have added an organization as yaml file to
open-source-by-organizations site by the following instructions:

$ git clone https://github.com/OSDC-Code-Maven/open-source-by-organizations.git //
Cloning into 'open-source-by-organizations'
$ cd open-source-by-organizations/)
$ cat .git/config
$ git checkout -b organizations/add
Switched to a new branch 'organizations/add'
$ git status
On branch organizations/add
nothing to commit, working tree clean
$ cd data/organisations/
$ notepad jce.yaml
$ git remote -v
origin https://github.com/OSDC-Code-Maven/open-source-by-organizations.git
(fetch)
origin https://github.com/OSDC-Code-Maven/open-source-by-organizations.git
(push)
$ git push --set-upstream fork organizations/add
$ git add jce.yaml
$ git commit -m "add jce organization"
[organizations/add 0737ede] add jce organization
1 file changed, 5 insertions(+)
create mode 100644 data/organisations/jce.yaml
$ git rebase main
$ git push --force

Top comments (0)