### USEFUL LINKS!
https://www.bioconductor.org/developers/how-to/git/
http://master.bioconductor.org/developers/how-to/git/faq/


# The git config should be here
D:\Programs\Git\etc\ssh\ssh_config
# Or here
C:\Users\feder\.ssh\config
# Or here
C:\Program Files\Git\etc\ssh\ssh_config

# I edited it by adding this text:
Host bioconductor.org
Hostname bioconductor.org
User git
IdentityFile /d/Dropbox/projects/github/id_rsa
PreferredAuthentications publickey





# It turns out on the laptop it works if you use this instead:
# I copied my id_rsa and id_rsa public in C:\Users\feder\.ssh
# then, in D:\Programs\Git\etc\ssh\ssh_config
IdentityFile ~/.ssh/id_rsa
Host bioconductor.org
Hostname bioconductor.org
User git
PreferredAuthentications publickey


# Password is atlanta
cd /d/Dropbox/projects/github/bioconductor/
git clone git@git.bioconductor.org:packages/vulcan
git clone git@git.bioconductor.org:packages/vulcandata

# Or, Update existing
cd /d/Dropbox/projects/github/bioconductor/vulcan
git pull

# edit file, e.g., `vi DESCRIPTION`
cd /d/Dropbox/rstudio/github/bioconductor/vulcandata
git commit DESCRIPTION
git push

# Edit and add a file
cd /d/Dropbox/rstudio/github/bioconductor/vulcan
git add inst/scripts/maintain.txt
git commit vignettes/vulcan.Rnw inst/scripts/maintain.txt
git commit . -m 'Update'
git push

# If the repository is already cloned, the work flow is to make sure that you are on the ‘master’ branch, pull any changes, then introduce your edits.
cd /d/Dropbox/rstudio/github/bioconductor/vulcan
git checkout master
git pull
## add, edit, commit, and push as above


# Just commit and push everything
cd /d/Dropbox/projects/github/bioconductor/vulcan
# cd /c/Users/fmg2117/Dropbox/rstudio/github/bioconductor/vulcan
git commit * -m 'Fixed citations'
git push


