![1 Star 1 Star](https://i0.wp.com/www.devtech101.com/wp-content/plugins/wp-postratings/images/stars_crystal/rating_on.gif?w=1200&ssl=1)
![2 Stars 2 Stars](https://i0.wp.com/www.devtech101.com/wp-content/plugins/wp-postratings/images/stars_crystal/rating_off.gif?w=1200&ssl=1)
![3 Stars 3 Stars](https://i0.wp.com/www.devtech101.com/wp-content/plugins/wp-postratings/images/stars_crystal/rating_off.gif?w=1200&ssl=1)
![4 Stars 4 Stars](https://i0.wp.com/www.devtech101.com/wp-content/plugins/wp-postratings/images/stars_crystal/rating_off.gif?w=1200&ssl=1)
![5 Stars 5 Stars](https://i0.wp.com/www.devtech101.com/wp-content/plugins/wp-postratings/images/stars_crystal/rating_off.gif?w=1200&ssl=1)
![](https://i0.wp.com/www.devtech101.com/wp-content/plugins/wp-postratings/images/loading.gif?resize=16%2C16&ssl=1)
Configuring, Using GitHub Branching and Merging
![](https://i0.wp.com/devtech101.com/wp-content/uploads/2018/01/github-mark-300x158.png?resize=300%2C158)
git clone https://github.com/elik1001/coreos-kubernetes-generatorTo add a file readme.txt, run the below.
git add readme.txtTo add all files/folder
git add . # Or git add -ATo commit the file to your local cloned git repository.
git commit -m "Adding readme.txt"To push all your changes to the master branch, just run the below.
git pushTo get the latest changes
cd coreos-kubernetes-generator git pullNow, lets create a new branch, I will name this branch Version-02.
git branch Version-02Now lets switch to the new branch Version-02. Note: git uses the checkout option to switch to a different branch(or back to master).
git checkout Version-02Same as above, to add all changes.
git add .To set the executable bit on a file, just run the below.
git update-index --chmod=+x bin/clone_zfs.pyTo commit all changes.
git commit # or git commit -am "reason for change"Finally, to push all changes to github.
git push origin Version-02Now, login to github and merge and apply all changes to the master (if all is correct). Since I am using tow-factor authentication so called Tow-step authentication, the extra steps below are required. Lets configure our local Github properties.
git config --global user.email "my_email@gmail.com" git config --global user.name "Eli"The below will help for two factor authentication. Enable user/password cache
git config --global credential.helper cacheNext time you push changes to github, it will ask for your user login name. Then for password use your GitHub API/Two-factor key. Like what you’re reading? please provide feedback, any feedback is appreciated.
0
0
votes
Article Rating