ยินดีต้อนรับสู่การเขียนโปรแกรมเชิงวัตถุใน Java ที่เก็บนี้ทำขึ้นเพื่อรักษาโปรแกรมต่าง ๆ ใน Java ในพื้นที่เดียว พื้นที่เก็บข้อมูลนี้ได้รับการดูแลโดย theabhishek07 ซึ่งเป็นที่เก็บสาธารณะและยินดีต้อนรับการมีส่วนร่วมในรหัสทุกประเภท
คุณสามารถรับส้อมของคุณเอง/สำเนา Java-Program โดยใช้ปุ่ม Fork
คุณต้องไปที่ส้อมของที่เก็บแล้วโคลน (ดาวน์โหลด) ไปยังเครื่องในท้องถิ่นโดยใช้
$ git clone https://github.com/Your_Username/JAVA-PROGRAM.git สิ่งนี้ทำให้สำเนาที่เก็บในเครื่องของคุณ
เมื่อคุณโคลนพื้นที่เก็บข้อมูล JAVA-PROGRAM ใน GitHub ให้ย้ายไปที่โฟลเดอร์นั้นก่อนโดยใช้คำสั่งเปลี่ยนไดเรกทอรีบน Linux และ Mac
## 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 จากนั้นเพิ่มชื่อและคำอธิบายลงในคำขอดึงของคุณที่อธิบายความพยายามอันมีค่าของคุณ
ใบอนุญาต
code_of_conduct