Versions Compared

Key

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

See

...

Getting Started (Assuming git is already installed)

#### create a directory
mkdir git-repo
cd git repo 

####

...

download

...

a

...

copy

...

of

...

the

...

initial

...

upload
git

...

clone

...

https://

...

YOURUSERNAME@bitbucket.org/SLAC-IEPM/imc14-tulip.git
(e.g. git clone https://rlacotrell@bitbucket.org/SLAC-IEPM/imc14-tulip.git)

cd imc14-tulip/ 

####

...

setup

...

account
git

...

config

...

--global

...

user.name

...

"Your

...

Name"
(e.g. git config --global rlacotrell "Les Cottrell")

git config --global user.email you@example.com

(e.g. git-config --global user.email cottrell@slac.stanford.edu)

#### Simplify accessing the URL by adding an alias 
git remote remove origin
git remote add origin https://YOURUSERNAME@bitbucket.org/SLAC-IEPM/imc14-tulip.git
#Now you'll just use "origin" when you want to use the URL 

...

#### to see the status of the files (modified vs. unmodified)
git status  #optional
#### to commit files the -a option allows us to skip the explicit staging of the files. This commits the local copy
git commit -a -m "I revised section XYZ." 

...

Basic command sequence for updates

cd ~cottrell/git-repo/imc14-tulip/text
git pull origin master
ls -l
vim file
git status
git commit -a -m "comment"
git push origin master

Creating paper

cd ~cottrell/git-repo/imc14-tulip;  makemake clean; make #This creates paper.pdf

#Then print paper.pdf

Examples

Getting Started

[cottrell@iepm ~]$ mkdir git-repo

...