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 。然后将标题和描述添加到您的拉请请求中,以解释您宝贵的努力。
执照
行为守则