Skip to content

oanskyy/multiple-git-accounts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

How to set up 2 or more GitHub accounts

https://www.freecodecamp.org/news/manage-multiple-github-accounts-the-ssh-way-2dadc30ccaca/

https://medium.com/@pinglinh/how-to-have-2-github-accounts-on-one-machine-windows-69b5b4c5b14e

https://betterprogramming.pub/how-to-use-multiple-github-accounts-with-one-computer-c9ba3f851b75

https://jogendra.dev/how-to-use-multiple-github-accounts-on-single-machine

https://dev.to/sammm/setting-up-multiple-github-accounts-on-the-same-computer-without-having-to-change-the-repo-url-1007

From terminal, run cd ~/.ssh . Check if a config file exists by running - ls config . If you see ls: config: No such file or directory , create a new config file by running touch config . Command to remove ssh file or folder rm ~/.ssh/file.pub OR rm -r ~/.ssh

#Check if you have an existing .gitconfig in your root by running ls ~/.gitconfig . #If you don't have one, create one by running touch ~/.gitconfig

https://www.earthdatascience.org/courses/intro-to-earth-data-science/open-reproducible-science/bash/bash-commands-to-manage-directories-files/ Delete a Directory ( rm -r ) To delete (i.e. remove) a directory and all the sub-directories and files that it contains, navigate to its parent directory, and then use the command rm -r followed by the name of the directory you want to delete (e.g. rm -r directory-name )

Bash Commands to Manage Directories and Files Learning Objectives Run Bash commands to complete the following tasks: - print the current working directory (pwd) - navigate between directories on your computer (cd) - create new directories (mkdir) - print a list of files and subdirectories within directories (ls) - delete files (rm ) and directories (rm -r) - copy files (cp) and directories (cp -r) to another directory - easily create new files using a single command (touch)

Edit the file with vim: [https://www.cyberciti.biz/faq/how-do-i-save-changes-in-vim/]

Commands to save changes in vim

The procedure is as follows to save a file in Vim and quit the editor: Start vim by typing vim filename To insert text press i Now start editing text. Add new text or delete unwanted text. Press Esc key and type :w to save a file in vim. One can press Esc and type :wq to save changes to a file and exit from vim Another option is to press :x

About

how to set up and use multiple git accounts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •