Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Git: Rename a file

Git: Rename A File

'git mv' command is used to rename or move a file, directory.

Syntax
git mv {current_file_name}  {new_file_name}

Step 1: Clone a repository by executing below command.
git clone {repository_url}
$git clone https://github.com/harikrishna553/gitHelloWorld.git
Cloning into 'gitHelloWorld'...
remote: Enumerating objects: 24, done.
remote: Counting objects: 100% (24/24), done.
remote: Compressing objects: 100% (17/17), done.
remote: Total 24 (delta 3), reused 14 (delta 1), pack-reused 0
Unpacking objects: 100% (24/24), done.



This post first appeared on Java Tutorial : Blog To Learn Java Programming, please read the originial post: here

Share the post

Git: Rename a file

×

Subscribe to Java Tutorial : Blog To Learn Java Programming

Get updates delivered right to your inbox!

Thank you for your subscription

×