JAVA PROGRAM
1.0.0
歡迎來到Java中面向對象的編程此存儲庫,以在一個空間中維護Java的各種程序。該存儲庫由Theabhishek07維護。該存儲庫是一個公共存儲庫,對該守則的各種貢獻受到歡迎。
您可以使用Fork按鈕獲得自己的Java-program的叉子/副本
您需要轉到存儲庫的叉子,然後使用(將其下載)使用
$ git clone https://github.com/Your_Username/JAVA-PROGRAM.git這在計算機中製作了本地存儲庫的本地副本。
克隆GitHub中的JAVA-PROGRAM存儲庫後,首先使用Linux和Mac上的Change Directory命令移動到該文件夾。
## This will change directory to a folder JAVA-PROGRAM
$ cd JAVA - PROGRAM移動此文件夾以獲取所有其他命令。
現在,讓我們使用使用原始JAVA-PROGRAM存儲庫的參考
$ git remote add upstream https://github.com/theabhishek07/JAVA-PROGRAM.git這添加了一個名為上游的新遙控器。
使用
$ git remote - v
origin https : // github . com / Your_Username / JAVA - PROGRAM . git ( fetch ).
origin https : // github . com / Your_Username / JAVA - PROGRAM . git ( push ).
upstream https : // github . com / theabhishek07 / JAVA - PROGRAM . git ( fetch ).
upstream https : // github . com / theabhishek07 / JAVA - PROGRAM . git ( push ).始終使用原始存儲庫保持您的本地存儲庫副本。
# Fetch all remote repositories and delete any deleted remote branches
$ git fetch - - all - - prune
# Switch to master branch
$ git checkout master
# Reset local master branch to match upstream repository's master branch
$ git reset - - hard upstream / master
# Push changes to your forked JAVA-PROGRAM repo
$ git push origin master 每當您要做出貢獻時。請使用下面的命令創建一個新的分支,並保持主分支清潔(即與遠程分支同步)。
# It will create a new branch with name <branchname> and switch to branch <branchname>
$ git checkout - b < branchname >切換到所需的分支
# To switch from one folder to other
$ git checkout < branchname >將更改添加到分支。使用
# To add all files to branch
$ git add .輸入與代碼reveiwer相關的消息
# This message get associated with all files you have changed
$ git commit - m "relevant message"現在,將您的出色工作推向您的遠程存儲庫
# To push your work to your remote repository
$ git push - u origin < branchname >最後,轉到瀏覽器中的存儲庫,然後單擊compare and pull requests 。然後將標題和描述添加到您的拉請請求中,以解釋您寶貴的努力。
執照
行為守則