Push operation in HTML

Jerry modifies the previous commits using the git commit -a operation (signing changes) and he is ready to push the changes. Push operation saves permanent data to Git repository. After a successful push operation, other programmers can observe Jerry's changes.

He executes the git log command to observe commit details.

 [jerry @ CentOS project] $ git log 

The above command will produce the result:

 commit d1e19d316224cddc437e3ed34ec3c931ad803958 
Author: Jerry Mouse
Date: Wed Sep 11 08:05:26 2013 +0530

Changed return type of my_strlen to size_t

Before performing the push operation, he wants to review his changes, so he uses the git log command to browse the changes.

 [jerry @ CentOS project] $ git show d1e19d316224cddc437e3ed34ec3c931ad803958 

The above command will produce the result:

 commit d1e19d316224cddc437e3ed34ec3c931ad803958 
Author: Jerry Mouse
Date: Wed Sep 11 08:05:26 2013 +0530

Changed return type of my_strlen to size_t

diff --git a / string.cb / string.c
new file mode 100644
index 0000000.7da2992
--- / dev / null
+++ b / string.c
@@ -0,0 +1,24 @@
+ # include
+
+ size_t my_strlen (char * s)
+
{
+
char * p = s;
+
+
while (* p)
+ ++ p;
+ return (p -s);
+
}
+
+ int main (void)
+
{
+ int i;
+ char * s [] =
{
+ "Git tutorials",
+ "Tutorials Point"
+
};
+
+
+
for (i = 0; i <2; ++ i)
printf ("string lenght of% s =% lun", s [i], my_strlen (s [i]));
+
+
return 0;
+
}

Jerry is happy with his changes and is ready to push these changes.

 [jerry @ CentOS project] $ git push origin master 

The above command will produce the following result:

 Counting objects: 4, done. 
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 517 bytes, done.
Total 3 (delta 0), reused 0 (delta 0)
To gituser@git.server.com: project.git
19ae206.d1e19d3 master -> master

Jerry's changes have been successfully pushed to the repository; Now other programmers can observe these changes by performing simulation or update operations.

According to Tutorialspoint

Previous article: Commit in Git

Next article: Update activity in Git

4.5 ★ | 2 Vote

May be interested

  • Text in HTMLText in HTML
    the element in html is used to define a paragraph of text.
  • How to Use Text Color Tags in HTMLHow to Use Text Color Tags in HTML
    this article explains how to change the font color in html documents. although the html style tag is obsolete in html5, you can use css to color content on an html page. if you use an older version of html, you can use the html text color tag as needed.
  • Format text in HTMLFormat text in HTML
    format elements in html help determine the style and importance of text.
  • Elements in HTMLElements in HTML
    the html element usually goes in pairs, including the opening tag, closing tag, and the content inside the two tags.
  • Symbol - Icon in HTMLSymbol - Icon in HTML
    html has many mathematical, technical and monetary symbols that cannot be used to write.
  • Common HTML mistakes that you should avoid for better web programmingCommon HTML mistakes that you should avoid for better web programming
    learning html is not difficult, but when running it in the browser, errors often occur. here are common html errors and how to handle them for better web development.
  • How to insert spaces in HTMLHow to insert spaces in HTML
    this tutorial explains how to insert spaces and line breaks in html. because no matter how many times you type a space, html will display a space so to insert more than one space, you will need to use the html tag.
  • Clone activity in GitClone activity in Git
    we have an empty repository on the server and tom also pushed his first version. now, jerry can observe his changes. clone operation creates a remote repository instance.
  • Image img in HTMLImage img in HTML
    when you visit the website, you will often see images of all sizes and positions on the page. images in html web pages will help to enrich the content as well as increase the aesthetics of the page.
  • Attributes in HTMLAttributes in HTML
    properties are used to add information to elements in html.