diff options
Diffstat (limited to 'dev')
-rw-r--r-- | dev/c/index.html (renamed from dev/gdbc.html) | 20 | ||||
-rw-r--r-- | dev/git/index.html (renamed from dev/git.html) | 67 | ||||
-rw-r--r-- | dev/index.html | 84 | ||||
-rw-r--r-- | dev/js/index.html | 24 | ||||
-rw-r--r-- | dev/perl/index.html | 24 | ||||
-rw-r--r-- | dev/php/index.html | 24 | ||||
-rw-r--r-- | dev/python/index.html | 39 | ||||
-rw-r--r-- | dev/shell/dash.html (renamed from dev/dash.html) | 6 |
8 files changed, 251 insertions, 37 deletions
diff --git a/dev/gdbc.html b/dev/c/index.html index f5b2c74..09374c6 100644 --- a/dev/gdbc.html +++ b/dev/c/index.html @@ -2,12 +2,12 @@ <html dir="ltr" lang="en"> <head> <meta charset='utf-8'> - <title>GDB - C</title> + <title>C & GDB</title> </head> <body> + <a href="../index.html">Development Index</a> - <a href="index.html">Development Index</a> - <h1>GDB - C</h1> + <h1>C & GDB</h1> <p><a href="http://blog.fourthbit.com/2013/06/18/creating-an-open-source-program-in-c-with-autotools-part-1-of-2/">C program with autotools</a> </p> @@ -87,11 +87,17 @@ strace -c ./program </pre> - <a href="index.html">Development Index</a> - <p>This is part of the c9-doc Manual. + + <a href="../index.html">Development Index</a> + <p> + This is part of the c9-doc Manual. Copyright (C) 2016 - c9 Team. - See the file <a href="../fdl-1.3-standalone.html">Gnu Free Documentation License</a> + c9 team. + See the file <a href="../../fdl-1.3-standalone.html">Gnu Free Documentation License</a> for copying conditions.</p> + + </body> + </html> + diff --git a/dev/git.html b/dev/git/index.html index 5d65b32..40ae49d 100644 --- a/dev/git.html +++ b/dev/git/index.html @@ -6,7 +6,7 @@ </head> <body> - <a href="index.html">Development Index</a> + <a href="../index.html">Development Index</a> <h1>Git</h1> <p>First configure your global identity, configuration @@ -252,7 +252,16 @@ $ git -D h-1.2.2 </pre> - <h2 id="local">Local Workflow</h2> + <h2 id="local">2. Local Workflow</h2> + + <h3 id="working">2.1. Working area</h3> + + <p>Mark all deleted to commit;</p> + + <pre> + $ git ls-files --deleted -z | xargs -0 git rm + </pre> + <p>Mark all deleted to commit;</p> @@ -260,6 +269,14 @@ $ git ls-files --deleted -z | xargs -0 git rm </pre> + <h3 id="logdiff">2.2. Logs and commits</h3> + + <p>Create patch files to target branch/tag/ref;</p> + + <pre> + $ git format-patch --no-prefix software-v0.0.1 + </pre> + <p>Last commit that affected current path</p> <pre> @@ -274,11 +291,53 @@ $ git checkout f000^ -- path/to/file </pre> - <a href="index.html">Development Index</a> + <h3 id="remote">2.3. Working with remotes</h3> + + <p>Adding a new remote;</p> + + <pre> + $ git remote add newremotename https://github.com/user/repo.git + </pre> + + <p>Update all branches with remote;</p> + + <pre> + $ git fetch --all + $ git pull --all + </pre> + + <p>If you want to track all remotes run this line + and then the commands mentioned above;</p> + + <pre> + $ for remote in `git branch -r`; do git branch --track ${remote#origin/} $remote; done + </pre> + + <p>Future updates;</p> + + <pre> + $ git fetch --all + $ git pull --all + </pre> + + <p>Update local branches removed on remote set;</p> + + <pre> + $ git config --global fetch.prune true + </pre> + + + <p>This will prune on fetch or you can keep it manually;</p> + + <pre> + $ git remote prune origin + </pre> + + <a href="../index.html">Development Index</a> <p>This is part of the c9-doc Manual. Copyright (C) 2016 c9 Team. - See the file <a href="../fdl-1.3-standalone.html">Gnu Free Documentation License</a> + See the file <a href="../../fdl-1.3-standalone.html">Gnu Free Documentation License</a> for copying conditions.</p> </body> </html> diff --git a/dev/index.html b/dev/index.html index 3d20e72..befe5d6 100644 --- a/dev/index.html +++ b/dev/index.html @@ -11,29 +11,44 @@ <p>Tools for development and debugging</p> - <h2 id="scr">Source Code Revision</h2> + <h2>Git</h2> + + <p>Git is a distributed version control system, this document is meant to be distributed using git.</p> <ul> - <li><a href="git.html">Git</a> + <li><a href="git/index.html#teamwork">1. Team workflow</a> <ul> - <li><a href="git.html#teamwork">1. Team workflow</a> - <ul> - <li><a href="git.html#feature">1.1. Feature</a></li> - <li><a href="git.html#release">1.2. Release</a></li> - <li><a href="git.html#tags">1.3. Tags</a></li> - <li><a href="git.html#hotfix">1.4. Hotfix</a></li> - </ul> - </li> - <li><a href="git.html#local">2. Local Workflow</a></li> + <li><a href="git/index.html#feature">1.1. Feature</a></li> + <li><a href="git/index.html#release">1.2. Release</a></li> + <li><a href="git/index.html#tags">1.3. Tags</a></li> + <li><a href="git/index.html#hotfix">1.4. Hotfix</a></li> + </ul> + </li> + <li><a href="git/index.html#local">2. Local Workflow</a> + <ul> + <li><a href="git/index.html#working">2.1. Working area</a></li> + <li><a href="git/index.html#logdiff">2.2. Logs and commits</a></li> + <li><a href="git/index.html#remote">2.3. Working with remotes</a></li> </ul> </li> </ul> - <h2 id="c">C</h2> + <h2 id="c">C & GDB</h2> + + <p>C is functional compiled language created by Dennis Ritchie. BSD, Linux and Minix kernels use this language + as primary language.</p> + + <ul> + <li><a href="c/index.html">Hello World</a></li> + <li><a href="">Types & Variables</a></li> + <li><a href="">Operators & Expressions</a></li> + <li><a href="">Control Flow</a></li> + <li><a href="">Functions</a></li> + <li><a href="">Input & Output</a></li> + </ul> <ul> <li><a href="http://inti.sourceforge.net/tutorial/libinti/autotoolsproject.html">Autotools</a></li> - <li><a href="gdbc.html">GDB</a></li> </ul> <h2>Shell Script</h2> @@ -43,38 +58,61 @@ use bash;</p> <ul> - <li><a href="dash.html">Dash - Scripting</a> + <li><a href="shell/dash.html">Dash - Scripting</a> <ul> - <li><a href="dash.html#hello">Hello World</a></li> - <li><a href="dash.html#io">Input / Output</a></li> - <li><a href="dash.html#var">Variables</a></li> - <li><a href="dash.html#if">Conditions</a></li> + <li><a href="shell/dash.html#hello">Hello World</a></li> + <li><a href="shell/dash.html#var">Types & Variables</a></li> + <li><a href="">Operators & Expressions</a></li> + <li><a href="shell/dash.html#if">Control Flow</a></li> + <li><a href="">Functions</a></li> + <li><a href="shell/dash.html#io">Input & Output</a></li> </ul> </li> </ul> <h2>Python</h2> <ul> - <li>Python</li> + <li><a href="python/index.html">Hello World</a></li> + <li><a href="">Types & Variables</a></li> + <li><a href="">Operators & Expressions</a></li> + <li><a href="">Control Flow</a></li> + <li><a href="">Functions</a></li> + <li><a href="">Input & Output</a></li> </ul> <h2>Perl</h2> <ul> - <li>Perl</li> + <li><a href="perl/index.html">Hello World</a></li> + <li><a href="">Types & Variables</a></li> + <li><a href="">Operators & Expressions</a></li> + <li><a href="">Control Flow</a></li> + <li><a href="">Functions</a></li> + <li><a href="">Input & Output</a></li> </ul> + <h2>JavaScript</h2> <ul> - <li>JavaScript</li> + <li><a href="js/index.html">Hello World</a></li> + <li><a href="">Types & Variables</a></li> + <li><a href="">Operators & Expressions</a></li> + <li><a href="">Control Flow</a></li> + <li><a href="">Functions</a></li> + <li><a href="">Input & Output</a></li> </ul> <h2>PHP</h2> - <ul> - <li>PHP</li> + <li><a href="php/index.html">Hello World</a></li> + <li><a href="">Types & Variables</a></li> + <li><a href="">Operators & Expressions</a></li> + <li><a href="">Control Flow</a></li> + <li><a href="">Functions</a></li> + <li><a href="">Input & Output</a></li> </ul> <ul> + <li><a href="php/laravel.html">Laravel Framework</a></li> <li>PHP Unit</li> </ul> diff --git a/dev/js/index.html b/dev/js/index.html new file mode 100644 index 0000000..ae7e946 --- /dev/null +++ b/dev/js/index.html @@ -0,0 +1,24 @@ +<!DOCTYPE html> +<html dir="ltr" lang="en"> + <head> + <meta charset='utf-8'> + <title>c9 JavaScript</title> + </head> + <body> + <a href="../index.html">Development Index</a> + + <h1>c9 JavaScript</h1> + + <a href="../index.html">Development Index</a> + <p> + This is part of the c9-doc Manual. + Copyright (C) 2016 + c9 team. + See the file <a href="../../fdl-1.3-standalone.html">Gnu Free Documentation License</a> + for copying conditions.</p> + + + </body> + +</html> + diff --git a/dev/perl/index.html b/dev/perl/index.html new file mode 100644 index 0000000..247a96f --- /dev/null +++ b/dev/perl/index.html @@ -0,0 +1,24 @@ +<!DOCTYPE html> +<html dir="ltr" lang="en"> + <head> + <meta charset='utf-8'> + <title>c9 Perl</title> + </head> + <body> + <a href="../index.html">Development Index</a> + + <h1>c9 Perl</h1> + + <a href="../index.html">Development Index</a> + <p> + This is part of the c9-doc Manual. + Copyright (C) 2016 + c9 team. + See the file <a href="../../fdl-1.3-standalone.html">Gnu Free Documentation License</a> + for copying conditions.</p> + + + </body> + +</html> + diff --git a/dev/php/index.html b/dev/php/index.html new file mode 100644 index 0000000..2a44270 --- /dev/null +++ b/dev/php/index.html @@ -0,0 +1,24 @@ +<!DOCTYPE html> +<html dir="ltr" lang="en"> + <head> + <meta charset='utf-8'> + <title>c9 PHP</title> + </head> + <body> + <a href="../index.html">Development Index</a> + + <h1>c9 PHP</h1> + + <a href="../index.html">Development Index</a> + <p> + This is part of the c9-doc Manual. + Copyright (C) 2016 + c9 team. + See the file <a href="../../fdl-1.3-standalone.html">Gnu Free Documentation License</a> + for copying conditions.</p> + + + </body> + +</html> + diff --git a/dev/python/index.html b/dev/python/index.html new file mode 100644 index 0000000..e9b78eb --- /dev/null +++ b/dev/python/index.html @@ -0,0 +1,39 @@ +<!DOCTYPE html> +<html dir="ltr" lang="en"> + <head> + <meta charset='utf-8'> + <title>c9 Python</title> + </head> + <body> + <a href="../index.html">Development Index</a> + + <h1>c9 Python</h1> + + <pre> + test="/root/data" + dir= test + "/other" + print(dir) + </pre> + + <p>Debugging;</p> + + <pre> + import pdb + pdb.set_trace() + </pre> + + <p>Run your program;</p> + + <a href="../index.html">Development Index</a> + <p> + This is part of the c9-doc Manual. + Copyright (C) 2016 + c9 team. + See the file <a href="../../fdl-1.3-standalone.html">Gnu Free Documentation License</a> + for copying conditions.</p> + + + </body> + +</html> + diff --git a/dev/dash.html b/dev/shell/dash.html index 0329559..3a0e6de 100644 --- a/dev/dash.html +++ b/dev/shell/dash.html @@ -6,7 +6,7 @@ </head> <body> - <a href="index.html">Development Index</a> + <a href="../index.html">Development Index</a> <h1>Dash - Scripting</h1> <h2 id="hello">Hello World</h2> @@ -14,11 +14,11 @@ <h2 id="var">Variables</h2> <h2 id="if">Conditions</h2> - <a href="index.html">Development Index</a> + <a href="../index.html">Development Index</a> <p>This is part of the c9-doc Manual. Copyright (C) 2016 c9 Team. - See the file <a href="../fdl-1.3-standalone.html">Gnu Free Documentation License</a> + See the file <a href="../../fdl-1.3-standalone.html">Gnu Free Documentation License</a> for copying conditions.</p> </body> </html> |