I need to do a simple thing but I can not get it right ...
I and other developers are working with the same GIT branch on the Cloud repository. He added some files with the code which is not well formatted and is not locally committed but did not press the cloud.
I folder those files directly by using my What I can not understand is: Can I only drag specific files? How can I add this file to the main branch, am I editing them and then pushing them onto the server? BTW: I think that would be to create a temporary branch, push it to my friend machine, drag it to my machine and then It may push the cloud but my workspace does not have a well formatted code, it is problematic ... Assuming you can connect to your machine, and You can not just drag specific files what you can do, your version of your branch is called something unique, and you just have to choose the cherries that you have to finish on your server. Want to: Suppose its history (like And you have done. There is also a "quick and dirty" solution I do not recommend because it is bad behavior, but if you really need one or two files, then this work is completed, and you Taking someone from a person who does not command intellectually size: .git
git pull I know that at this stage, GIT will make this file a remote branch for me and a local branch to keep this file.
git clone its local store, you want to get your branches May include and create a local tracking branch. It looks like you've covered this bit, but for future generations:
add git remote Repo & gt; & Lt; His_repo_path & gt;
git fetch & lt; Repo & gt; & Lt; His_branch & gt ;: throwaway; # This calls your branch 'throave'
throwaway history)
ABCDEF . If you want to command
b and
D , you can catch them in the main branch with a cherry-picker:
Git checkout & lt; Main_branch & gt; ; # Check your main branch GT cherry 'B' Jeep Cherry-Pic 'D'
git checkout-B trashme master; # Or whatever is your main branch
trashme branch is checked.
cherry pick those commits or
GIT merge garbage
Comments
Post a Comment