Thursday, 9 February 2023

E𝐬𝐬𝐞𝐧𝐭𝐢𝐚𝐥 𝐆𝐢𝐭 𝐜𝐨𝐦𝐦𝐚𝐧𝐝𝐬

 𝐇𝐞𝐫𝐞 𝐚𝐫𝐞 𝐬𝐨𝐦𝐞 𝐞𝐬𝐬𝐞𝐧𝐭𝐢𝐚𝐥 𝐆𝐢𝐭 𝐜𝐨𝐦𝐦𝐚𝐧𝐝𝐬 𝐭𝐡𝐚𝐭 𝐞𝐯𝐞𝐫𝐲 𝐝𝐞𝐯𝐞𝐥𝐨𝐩𝐞𝐫 𝐬𝐡𝐨𝐮𝐥𝐝 𝐤𝐧𝐨𝐰 𝐰𝐡𝐢𝐥𝐞 𝐮𝐬𝐢𝐧𝐠 𝐕𝐢𝐬𝐮𝐚𝐥 𝐒𝐭𝐮𝐝𝐢𝐨 𝐂𝐨𝐝𝐞 𝐟𝐨𝐫 𝐚 𝐩𝐫𝐨𝐣𝐞𝐜𝐭:


1️.𝐆𝐢𝐭 𝐜𝐥𝐨𝐧𝐞 - to clone a remote repository to your local machine.


2️.𝐆𝐢𝐭 𝐚𝐝𝐝 - to add changes to the stage area.


3️.𝐆𝐢𝐭 𝐜𝐨𝐦𝐦𝐢𝐭 - to commit the changes to the local repository.


4️.𝐆𝐢𝐭 𝐩𝐮𝐬𝐡 - to push the changes to the remote repository.


5️.𝐆𝐢𝐭 𝐩𝐮𝐥𝐥 - to fetch and merge changes from the remote repository.


6️.𝐆𝐢𝐭 𝐝𝐢𝐟𝐟 - to view the difference between the changes.


7️.𝐆𝐢𝐭 𝐬𝐭𝐚𝐬𝐡- to temporarily save changes that are not ready to be committed.


8️.𝐆𝐢𝐭 𝐛𝐫𝐚𝐧𝐜𝐡 - to create or list branches.


9️.𝐆𝐢𝐭 𝐜𝐡𝐞𝐜𝐤𝐨𝐮𝐭 - to switch between branches.


10.𝐆𝐢𝐭 𝐦𝐞𝐫𝐠𝐞 - to merge one branch into another.


These commands can be executed either in the terminal or using the Git lens extension in Visual Studio Code

No comments:

Post a Comment