Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagebash
themeEmacs
git config --global user.name "my name"<my-name>

 

Setting the email address in git:

Code Block
languagebash
themeEmacs
git config --global user.email "my email"<my@email>

 

Confirm that your user name is correct by:

...

Check if you already have an ssh key by checking if the following file exists: ~/.ssh/id_rsa.pub and not empty.

If yes, create a new ssh key on GitHub and copy the content of ~/.ssh/id_rsa.pub to the Key section.

If you don't already have a ssh key, create a new one with the following command

Code Block
languagebash
themeEmacs
ssh-keygen -t rsa -b 4096 -C "your_email@example.com"

...

"<my@email>"

Then on prompt enter the name of ssh key file, e.g. ~/.ssh/id_rsa.

Newly created ssh key file should be added to the ssh-agent by commands

Code Block
themeConfluence
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_rsa


Afterwards add a new ssh key on GitHub and copy the content of ~/.ssh/id_rsa.pub

...

to

...

the

...

Key

...

section.

Useful Commands

Check status of the repo

...

Code Block
languagebash
themeEmacs
git clone git@github.com:lcls-psana/<some -repository>.git

The repository where you clone from is typically called "upstream".  This is the global copy of the repository that all developers share and work on together.

...

Afterwards just clone the new repository and the follow the workflow above

Delete repository

???

References