mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-24 20:52:08 +00:00
Merge pull request #168 from daniceexi/updateorigin
Simplify the steps to update forked repository
This commit is contained in:
commit
dfcd27e22f
@ -14,7 +14,7 @@ To improve the security between the REST API client and server, enabling the HTT
|
||||
service httpd restart
|
||||
yum install perl-JSON
|
||||
|
||||
* **[RHEL 5 (ppc64)]** ::
|
||||
* **[RHEL 5 (ppc64)]**
|
||||
|
||||
Uninstall httpd.ppc64 and install httpd.ppc: ::
|
||||
|
||||
@ -37,7 +37,7 @@ To improve the security between the REST API client and server, enabling the HTT
|
||||
ln -s ../sites-available/default-ssl.conf /etc/apache2/sites-enabled/ssl.conf
|
||||
sudo service apache2 restart
|
||||
|
||||
verify it is loaded: ::
|
||||
Verify it is loaded: ::
|
||||
|
||||
sudo apache2ctl -t -D DUMP_MODULES | grep ssl
|
||||
apt-get install libjson-perl
|
||||
@ -104,14 +104,14 @@ password: Pass the password of the account (xCAT earlier than 2.10)
|
||||
You can use the root userid for your API calls, but we recommend you create a new userid (for example wsuser) for the API calls and give it the specific privileges you want it to have.
|
||||
|
||||
Use root Account
|
||||
~~~~~~~~~~~~~~~
|
||||
~~~~~~~~~~~~~~~~
|
||||
|
||||
Since the certificate and ssh keys for **root** account has been created during the install of xCAT. And the public ssh key has been uploaded to computer node so that xCAT MN can ssh to CN without password. Then the only thing needs to do is to add the password for the **root** in the passwd table. ::
|
||||
|
||||
tabch key=xcat,username=root passwd.password=<root-pw>
|
||||
|
||||
Use non-root Account
|
||||
~~~~~~~~~~~~~~~~~~~
|
||||
~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Create new user and setup the password and policy rules. ::
|
||||
|
||||
|
@ -3,46 +3,40 @@ Syncing a Fork
|
||||
|
||||
**Note:** *The examples below all reference the master branch*
|
||||
|
||||
Before the Syncing
|
||||
------------------
|
||||
|
||||
References: https://help.github.com/articles/syncing-a-fork/
|
||||
|
||||
From time to time, your master branch will start to fall behind the upstream/master because changes are being pulled into the `xcat2/xcat-core`` project from other developers.
|
||||
From time to time, your master branch will start to **fall behind** the upstream/master because changes are being pulled into the ``xcat2/xcat-core`` project from other developers.
|
||||
|
||||
.. image:: github-behind_master.png
|
||||
|
||||
Use the following steps to sync up your forked copy:
|
||||
Update the **master branch** of your forked copy from xcat2/xcat-core
|
||||
---------------------------------------------------------------------
|
||||
|
||||
Fetching commits from upstream to your local
|
||||
--------------------------------------------
|
||||
#. Pull the ahead commits from the ``upstream master`` to your local master branch. ::
|
||||
|
||||
#. Fetch the upstream changes for the master branch. (changed are stored in a local branch: ``upstream/master``) ::
|
||||
$ git pull upstream master
|
||||
remote: Counting objects: 38, done.
|
||||
remote: Compressing objects: 100% (15/15), done.
|
||||
remote: Total 38 (delta 14), reused 9 (delta 9), pack-reused 14
|
||||
Unpacking objects: 100% (38/38), done.
|
||||
From github.com:xcat2/xcat-core
|
||||
* branch master -> FETCH_HEAD
|
||||
8f0cb07..d0651b5 master -> upstream/master
|
||||
Updating 8f0cb07..d0651b5
|
||||
Fast-forward
|
||||
...
|
||||
|
||||
$ git fetch upstream
|
||||
Enter passphrase for key '/home/vhu/.ssh/github/id_rsa':
|
||||
From github.com:xcat2/xcat-core
|
||||
* [new branch] master -> upstream/master
|
||||
#. Push the commits from your local master to your forked copy in GitHub: ::
|
||||
|
||||
|
||||
#. Switch to your master branch and merge from upstream/master: ::
|
||||
$ git push origin master
|
||||
|
||||
$ git checkout master
|
||||
Switched to branch 'master'
|
||||
|
||||
$ git merge upstream/master
|
||||
Updating a24d02f..f531ff8
|
||||
Fast-forward
|
||||
...
|
||||
|
||||
Pushing the merged changes from your local to your remote fork
|
||||
--------------------------------------------------------------
|
||||
After the Syncing
|
||||
-----------------
|
||||
|
||||
The following is needed to push the changes that you merged from upstream into your local clone on your development machine to the remote GitHub repository.
|
||||
|
||||
#. Sync the changes in your master branch to GitHub: ::
|
||||
|
||||
$ git push origin master
|
||||
|
||||
|
||||
Your fork master branch should now be even with ``xcat2/xcat-core``
|
||||
Your fork master branch should now be **even** with ``xcat2/xcat-core``
|
||||
|
||||
.. image:: github-even_with_master.png
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user