1.

List some useful commands in GIT.

Answer»

There are some helpful GIT commands which are generally utilized amid advancement. A portion of the essential GIT commands recorded down underneath classified into various categories:

git init Initialize a nearby Git store git clone remoteurl/[username]/[repository-name].git Create a nearby duplicate of a remote store git branch List branches (the reference mark indicates the present branch) git branch - a List all branches (nearby and remote) git branch [branch name] Create another branch git branch - d [branch name] Delete a branch git status Check status git add [file-name.txt] Add a document to the arranging zone git add- A Add all new and changed records to the organizing region git commit- m "[commit message]" Commit changes git rm - r [file-name.txt] Remove a document (or ORGANIZER) git push origin- delete[branch name] Delete a remote branch git checkout - b [branch name] Create another branch and change to it git checkout - b [branch name] origin/[branch name] Clone a remote branch and change to it git checkout [branch name] Switch to a branch git checkout - Switch to the branch last looked at git checkout - [file-name.txt] Discard changes to a record git merge[branch name] Merge a branch into the dynamic branch git  merge[source branch] [target branch] Merge a branch into an OBJECTIVE branch git stash Stash changes in a FILTHY working catalog git stash clear Remove all reserved sections git push origin [branch name] Push a branch to your remote store git push - u origin[branch name] Push changes to remote storehouse (and recall the branch) git push Push changes to remote storehouse (recollected branch) git push origin- delete[branch name] Delete a remote branch git pull Update nearby archive to the most up to date submit git pull cause [branch name] Pull changes from remote archive git remote add origin remoteurl/[username]/[repository-name].git Add a remote storehouse git remote set-url origin remoteurl/[username]/[repository-name].git Set a repo birthplace branch to SSH git log View changes git log - summary View changes (NITTY gritty) git diff [source branch] [target branch] PREVIEW changes before blending


Discussion

No Comment Found