git workflow for making modifications you'll never push back to origin

若如初见. 提交于 2019-12-07 03:50:52

问题


Git newbie here.

I'm building an iPhone app with PhoneGap, which has a Git repos. I'd like to keep track of my changes to the PhoneGap code (mainly, adding files to the www directory) in my own Git repository, while being able to pull the latest and greatest out of PhoneGap.

What's the best way of doing this? Is this what a branch is intended for?

Also, how would I get it to ignore the fact that I deleted folders I don't need, like the android/ and blackberry/ folder?


回答1:


This is exactly what a branch is for. You should work on your branch, and pull changes from the main branch, possibly using --rebase.



来源:https://stackoverflow.com/questions/582015/git-workflow-for-making-modifications-youll-never-push-back-to-origin

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!