mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-08-17 16:50:22 +00:00
build-utils
docs
java-xCAT
perl-xCAT
src
xCAT
xCAT-IBMhpc
xCAT-OpenStack
xCAT-OpenStack-baremetal
xCAT-OpenStack-ironic
xCAT-SoftLayer
xCAT-UI
xCAT-buildkit
xCAT-client
xCAT-confluent
xCAT-csm
xCAT-genesis-builder
xCAT-genesis-scripts
xCAT-openbmc-py
xCAT-probe
xCAT-rmc
xCAT-server
xCAT-test
xCAT-vlan
xCATsn
.gitignore
.mailmap
.travis.yml
README.rst
Release
Version
build-python-deb
build-ubunturepo
buildcore.sh
builddep.sh
buildlocal.sh
comps.xml
create_man_pages.py
makerpm
makerpm-genesisbuilder
pull_request_template.md
travis.pl
41 lines
1.2 KiB
ReStructuredText
41 lines
1.2 KiB
ReStructuredText
Changing Code
|
|
=============
|
|
|
|
Checkout Branch
|
|
---------------
|
|
|
|
Checkout and switch to the branch using ``git checkout -b`` ::
|
|
|
|
$ git checkout -b mybranch origin/mybranch
|
|
Branch mybranch set up to track remote branch mybranch from origin.
|
|
Switched to a new branch 'mybranch'
|
|
|
|
|
|
Changing the code
|
|
-----------------
|
|
|
|
Now you are ready to make changes related to your function in this branch
|
|
|
|
Multiple Remote Branches
|
|
^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
It may take days before your pull request is properly reviewed and you want to keep changes out of that branch so in the event that you are asked to fix something, you can push directly to the branch with the active pull request.
|
|
|
|
Creating additional branches will allow you to work on different tasks/enhancements at the same time. You can easily manage your working changes between branches with ``git stash.``.
|
|
|
|
|
|
Committing code and pushing to remote branch
|
|
--------------------------------------------
|
|
|
|
Once your code is ready....
|
|
|
|
#. Commit the code to your local branch: ::
|
|
|
|
$ git add <files>
|
|
$ git commit | git commit -m "<comments>"
|
|
|
|
#. Push the changes to your remote branch: ::
|
|
|
|
$ git push origin <branch name>
|
|
|