j-angus/cpama
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
setup git repository for storing 'c' source code. -------------------------------------------------- Main repository is stored on GitHub server: github.com github login: j-angus setup git: ------------ Global setup: git config --global user.name "Jason Angus" git config --global user.email jaduffa@gmail.com git config --global color.ui true Next steps: mkdir ~/swdev cd ~/swdev Best to login to github first and check out help section there for clear instructions. Follow setting up ssh key instructions first: http://help.github.com/linux-set-up-git/ change to ~/swdev on local computer. git clone git@github.com:j-angus/cpama creates directory: cpama change to cpama This is the directory for all cpama development. Do some work. add files to be tracked: $ git add <path to files> # Let's only store *.c source files and other informational text files. No compiled or object files for now. save and commit changes to local git repository. $ git commit will commit all files added in the last step. Or we can add and commit previously added files with: $ git commit -am "commit comment" push and merge changes to remote, github, repository. to update on github: $ git push -u origin master When we want to get the latest revisions from github: ------------------------------------------------------ check to see if we are up to date or not: $ git remote show origin get changes from remote but don't merge: $ git fetch look at the differences after a fetch: $ git diff $ git show if we're happy with changes, we can merge this way: $ git merge origin/master we can fetch and merge in one step with: $ git pull origin or even: $ git pull Recovering a deleted file (before committing): ----------------------------------------------- git checkout HEAD -- <filename> Some useful vim settings: -------------------------- /* vim: tabstop=8:softtabstop=8:shiftwidth=8:noexpandtab:cindent:nu:sm:cursorline */ set cindent nu sm tabstop=8 softtabstop=8 shiftwidth=8 noexpandtab cursorline
About
C Programming: A Modern Approach
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published