Skip to content

PMA-2020/git-workshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Git Workshop

This is our logo

pma logo

Directory structure

.
├── Exercise_CIR1_HHQFQDoFile2_2Page_Analysis.do
├── .gitignore   <-- Tell git what to ignore
├── LICENSE   <-- How can others use your repo?
├── README.md
├── data
│   └── CI
│       └── R1
│           └── CIR1_WealthWeightAll_6Dec2017.dta
└── templates
    └── PMA_SOI_2P
        └── DoFiles
            ├── CCRX_HHQFQDoFile2_2Page_Analysis.do
            └── PMA2020_MedianDefineFn_simple.do

Exercises

Part 1

Taking someone's file and making changes to send back.

  1. Fork
  2. Clone
  3. Make branch
    • Branches can be used in different ways. One possible way to use branches is to make a new branch whenever development starts for a new country survey round.
  4. Make changes
  5. Push
  6. Pull request
  7. Getting feedback
  8. Making more changes (if requested by a/the maintainer)
  9. Merge pull request (done by a/the maintainer)

Part 2

Updating your repo from someone else's changes.

  1. Fetch changes
  2. Merge or rebase
  3. Handle merge conflicts

Merge conflicts can happen when the same "hunk" is affected in both branches, after they have diverged, and before they have re-merged.

About

⋆*☆ (ノ≧∀≦)ノ Welcome to Git! \(≧∀≦\) ☆*⋆

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published