Comments (4)
Thanks so much! I will look into this.
from comp-econ-sp19.
Good question. The easiest approach would be to save your edited files to some other place so that you can keep your clone of the class repo "clean." This will allow you to pull changes from it without ever having to worry about merge conflicts.
If you're feeling adventurous and want to explore the features of Git, you can commit your personal changes (the process to do this is to stage your changes and then commit them). If you ever encounter merge conflicts---hopefully this will be a rare occurrence---I can help you deal with them. At that point, you might consider using branches to track the divergent histories of your version of the repo and the class version. You can read more about branching here:
- https://git-scm.com/book/en/v2/Git-Branching-Branches-in-a-Nutshell
- https://git-scm.com/book/en/v2/Git-Branching-Basic-Branching-and-Merging
Note that as long as you have committed your changes, you will always have a backup of what you've done. Creating a commit is like taking a snapshot or backup of all of your files in your repo. If you ever need to, you can always recover your files from the point in time in which any commit was created. (Staging and commiting tells Git to include changed/WIP files in the next commit. Changes not included will not be backed up.)
from comp-econ-sp19.
Thanks for the response!
So I can commit the file, but not push it right? This way I have the backup through Git and it is on my computer, but because I never pushed it won't affect the master repo.
from comp-econ-sp19.
@henryli78 That's right. You won't be able to push to it. jmbejara/comp-econ-sp19
is a remote repo that you don't have "write permission" for.
However, as an FYI, repos can have multiple "remote repos" associated with them. You could create a separate repo on GitHub, add a second remote repo to your local repo (the clone on your laptop), and then you could push to that repo. You would then pull jmbejara/comp-econ-sp19
on a regular basis and then push changes to, e.g., henryli78/comp-econ-sp19
. Here's some reference material:
- https://git-scm.com/book/en/v2/Git-Basics-Working-with-Remotes
- https://www.youtube.com/watch?v=kd4jMl_3LQE
from comp-econ-sp19.
Related Issues (20)
- mle_args HOT 1
- Dealing with NaN Values HOT 3
- Correct Queries, Consistent Issues Running Database HOT 1
- Optimizer not working but generating correct log-likelihood values HOT 1
- Kaggle Not Running HOT 1
- wrong value for Q1 HOT 3
- Ari's monday office hours HOT 1
- Difference between value function and policy function HOT 1
- McCall Wage Values HOT 2
- Typo in HW 7
- HW7 eatCake graphs & output HOT 1
- McCall Modification HOT 1
- EatCake Problem 1 HOT 3
- Replicate Bresnahan Reiss-1991 Solutions Question HOT 1
- issue with HW7 Q5 HOT 1
- Final Review HOT 1
- Using opt.minimize on discrete data HOT 3
- Questions for Bresnahan HW HOT 1
- office hours today HOT 1
- MLE for Bernoulli distribution HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from comp-econ-sp19.