<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://docs.sandbox.joomla.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Juliano.freitas</id>
	<title>Joomla! Documentation - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://docs.sandbox.joomla.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Juliano.freitas"/>
	<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/Special:Contributions/Juliano.freitas"/>
	<updated>2026-05-23T15:19:29Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Administrator_(User)/pt-br&amp;diff=405106</id>
		<title>Administrator (User)/pt-br</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Administrator_(User)/pt-br&amp;diff=405106"/>
		<updated>2017-05-17T02:49:12Z</updated>

		<summary type="html">&lt;p&gt;Juliano.freitas: Created page with &amp;quot;* Administrador * Super Usuário&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&amp;lt;languages /&amp;gt;&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&lt;br /&gt;
O Joomla! mantém duas classificações principais de grupos de usuários. As classificações são, principalmente grupos de usuários &#039;&#039;&#039;[[S:MyLanguage/Front-end|Front-end (site)]]&#039;&#039;&#039; e &#039;&#039;&#039;[[S:MyLanguage/Back-end|Back-end (administração)]]&#039;&#039;&#039;. Usuários front-end só estão autorizados a fazer login usando o lado voltado para público do website. Usuários back-end estão autorizados a logar na parte administrativa do website. Como resultado, esses usuários também são chamados de usuários administrativos ou administradores.&lt;br /&gt;
&lt;br /&gt;
Logins administrativos estão disponíveis por padrão em &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://example.org/administrator&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Usuários de back-end são ainda separados em 2 grupos===&lt;br /&gt;
&lt;br /&gt;
* Administrador&lt;br /&gt;
* Super Usuário&lt;br /&gt;
&lt;br /&gt;
The most privileged of these users belong to the Super Users group. Super Users have the highest privilege level and can make changes or add new features or content to any section of a Joomla! site.&lt;br /&gt;
&lt;br /&gt;
===Points to note on Super Users===&lt;br /&gt;
&lt;br /&gt;
* The default Super Users is &#039;admin&#039; and is installed with every Joomla! site&lt;br /&gt;
* Super Users are able to log in on the Front-end or Back-end of the site&lt;br /&gt;
* A Joomla! site may have more than one designated Super Users&lt;br /&gt;
&lt;br /&gt;
[[Category:Glossary]]&lt;br /&gt;
[[Category:Needs review]]&lt;/div&gt;</summary>
		<author><name>Juliano.freitas</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Translations:Administrator_(User)/4/pt-br&amp;diff=405105</id>
		<title>Translations:Administrator (User)/4/pt-br</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Translations:Administrator_(User)/4/pt-br&amp;diff=405105"/>
		<updated>2017-05-17T02:49:12Z</updated>

		<summary type="html">&lt;p&gt;Juliano.freitas: Created page with &amp;quot;* Administrador * Super Usuário&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* Administrador&lt;br /&gt;
* Super Usuário&lt;/div&gt;</summary>
		<author><name>Juliano.freitas</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Administrator_(User)/pt-br&amp;diff=405104</id>
		<title>Administrator (User)/pt-br</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Administrator_(User)/pt-br&amp;diff=405104"/>
		<updated>2017-05-17T02:48:43Z</updated>

		<summary type="html">&lt;p&gt;Juliano.freitas: Created page with &amp;quot;===Usuários de back-end são ainda separados em 2 grupos===&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&amp;lt;languages /&amp;gt;&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&lt;br /&gt;
O Joomla! mantém duas classificações principais de grupos de usuários. As classificações são, principalmente grupos de usuários &#039;&#039;&#039;[[S:MyLanguage/Front-end|Front-end (site)]]&#039;&#039;&#039; e &#039;&#039;&#039;[[S:MyLanguage/Back-end|Back-end (administração)]]&#039;&#039;&#039;. Usuários front-end só estão autorizados a fazer login usando o lado voltado para público do website. Usuários back-end estão autorizados a logar na parte administrativa do website. Como resultado, esses usuários também são chamados de usuários administrativos ou administradores.&lt;br /&gt;
&lt;br /&gt;
Logins administrativos estão disponíveis por padrão em &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://example.org/administrator&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Usuários de back-end são ainda separados em 2 grupos===&lt;br /&gt;
&lt;br /&gt;
* Administrator&lt;br /&gt;
* Super Users&lt;br /&gt;
&lt;br /&gt;
The most privileged of these users belong to the Super Users group. Super Users have the highest privilege level and can make changes or add new features or content to any section of a Joomla! site.&lt;br /&gt;
&lt;br /&gt;
===Points to note on Super Users===&lt;br /&gt;
&lt;br /&gt;
* The default Super Users is &#039;admin&#039; and is installed with every Joomla! site&lt;br /&gt;
* Super Users are able to log in on the Front-end or Back-end of the site&lt;br /&gt;
* A Joomla! site may have more than one designated Super Users&lt;br /&gt;
&lt;br /&gt;
[[Category:Glossary]]&lt;br /&gt;
[[Category:Needs review]]&lt;/div&gt;</summary>
		<author><name>Juliano.freitas</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Translations:Administrator_(User)/3/pt-br&amp;diff=405103</id>
		<title>Translations:Administrator (User)/3/pt-br</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Translations:Administrator_(User)/3/pt-br&amp;diff=405103"/>
		<updated>2017-05-17T02:48:43Z</updated>

		<summary type="html">&lt;p&gt;Juliano.freitas: Created page with &amp;quot;===Usuários de back-end são ainda separados em 2 grupos===&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===Usuários de back-end são ainda separados em 2 grupos===&lt;/div&gt;</summary>
		<author><name>Juliano.freitas</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Administrator_(User)/pt-br&amp;diff=405102</id>
		<title>Administrator (User)/pt-br</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Administrator_(User)/pt-br&amp;diff=405102"/>
		<updated>2017-05-17T02:47:59Z</updated>

		<summary type="html">&lt;p&gt;Juliano.freitas: Created page with &amp;quot;Logins administrativos estão disponíveis por padrão em&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&amp;lt;languages /&amp;gt;&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&lt;br /&gt;
O Joomla! mantém duas classificações principais de grupos de usuários. As classificações são, principalmente grupos de usuários &#039;&#039;&#039;[[S:MyLanguage/Front-end|Front-end (site)]]&#039;&#039;&#039; e &#039;&#039;&#039;[[S:MyLanguage/Back-end|Back-end (administração)]]&#039;&#039;&#039;. Usuários front-end só estão autorizados a fazer login usando o lado voltado para público do website. Usuários back-end estão autorizados a logar na parte administrativa do website. Como resultado, esses usuários também são chamados de usuários administrativos ou administradores.&lt;br /&gt;
&lt;br /&gt;
Logins administrativos estão disponíveis por padrão em &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://example.org/administrator&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Back-end users are further separated into 2 groups===&lt;br /&gt;
&lt;br /&gt;
* Administrator&lt;br /&gt;
* Super Users&lt;br /&gt;
&lt;br /&gt;
The most privileged of these users belong to the Super Users group. Super Users have the highest privilege level and can make changes or add new features or content to any section of a Joomla! site.&lt;br /&gt;
&lt;br /&gt;
===Points to note on Super Users===&lt;br /&gt;
&lt;br /&gt;
* The default Super Users is &#039;admin&#039; and is installed with every Joomla! site&lt;br /&gt;
* Super Users are able to log in on the Front-end or Back-end of the site&lt;br /&gt;
* A Joomla! site may have more than one designated Super Users&lt;br /&gt;
&lt;br /&gt;
[[Category:Glossary]]&lt;br /&gt;
[[Category:Needs review]]&lt;/div&gt;</summary>
		<author><name>Juliano.freitas</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Translations:Administrator_(User)/2/pt-br&amp;diff=405101</id>
		<title>Translations:Administrator (User)/2/pt-br</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Translations:Administrator_(User)/2/pt-br&amp;diff=405101"/>
		<updated>2017-05-17T02:47:59Z</updated>

		<summary type="html">&lt;p&gt;Juliano.freitas: Created page with &amp;quot;Logins administrativos estão disponíveis por padrão em&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Logins administrativos estão disponíveis por padrão em&lt;/div&gt;</summary>
		<author><name>Juliano.freitas</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Administrator_(User)/pt-br&amp;diff=405100</id>
		<title>Administrator (User)/pt-br</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Administrator_(User)/pt-br&amp;diff=405100"/>
		<updated>2017-05-17T02:47:27Z</updated>

		<summary type="html">&lt;p&gt;Juliano.freitas: Created page with &amp;quot;O Joomla! mantém duas classificações principais de grupos de usuários. As classificações são, principalmente grupos de usuários &amp;#039;&amp;#039;&amp;#039;S:MyLanguage/Front-end|Front-end (...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&amp;lt;languages /&amp;gt;&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&lt;br /&gt;
O Joomla! mantém duas classificações principais de grupos de usuários. As classificações são, principalmente grupos de usuários &#039;&#039;&#039;[[S:MyLanguage/Front-end|Front-end (site)]]&#039;&#039;&#039; e &#039;&#039;&#039;[[S:MyLanguage/Back-end|Back-end (administração)]]&#039;&#039;&#039;. Usuários front-end só estão autorizados a fazer login usando o lado voltado para público do website. Usuários back-end estão autorizados a logar na parte administrativa do website. Como resultado, esses usuários também são chamados de usuários administrativos ou administradores.&lt;br /&gt;
&lt;br /&gt;
Administrative logins are available by default at &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://example.org/administrator&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Back-end users are further separated into 2 groups===&lt;br /&gt;
&lt;br /&gt;
* Administrator&lt;br /&gt;
* Super Users&lt;br /&gt;
&lt;br /&gt;
The most privileged of these users belong to the Super Users group. Super Users have the highest privilege level and can make changes or add new features or content to any section of a Joomla! site.&lt;br /&gt;
&lt;br /&gt;
===Points to note on Super Users===&lt;br /&gt;
&lt;br /&gt;
* The default Super Users is &#039;admin&#039; and is installed with every Joomla! site&lt;br /&gt;
* Super Users are able to log in on the Front-end or Back-end of the site&lt;br /&gt;
* A Joomla! site may have more than one designated Super Users&lt;br /&gt;
&lt;br /&gt;
[[Category:Glossary]]&lt;br /&gt;
[[Category:Needs review]]&lt;/div&gt;</summary>
		<author><name>Juliano.freitas</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Translations:Administrator_(User)/1/pt-br&amp;diff=405099</id>
		<title>Translations:Administrator (User)/1/pt-br</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Translations:Administrator_(User)/1/pt-br&amp;diff=405099"/>
		<updated>2017-05-17T02:47:27Z</updated>

		<summary type="html">&lt;p&gt;Juliano.freitas: Created page with &amp;quot;O Joomla! mantém duas classificações principais de grupos de usuários. As classificações são, principalmente grupos de usuários &amp;#039;&amp;#039;&amp;#039;S:MyLanguage/Front-end|Front-end (...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;O Joomla! mantém duas classificações principais de grupos de usuários. As classificações são, principalmente grupos de usuários &#039;&#039;&#039;[[S:MyLanguage/Front-end|Front-end (site)]]&#039;&#039;&#039; e &#039;&#039;&#039;[[S:MyLanguage/Back-end|Back-end (administração)]]&#039;&#039;&#039;. Usuários front-end só estão autorizados a fazer login usando o lado voltado para público do website. Usuários back-end estão autorizados a logar na parte administrativa do website. Como resultado, esses usuários também são chamados de usuários administrativos ou administradores.&lt;/div&gt;</summary>
		<author><name>Juliano.freitas</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Administrator_(User)/pt-br&amp;diff=405098</id>
		<title>Administrator (User)/pt-br</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Administrator_(User)/pt-br&amp;diff=405098"/>
		<updated>2017-05-17T02:42:17Z</updated>

		<summary type="html">&lt;p&gt;Juliano.freitas: Created page with &amp;quot;Administrador (Usuário)&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&amp;lt;languages /&amp;gt;&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Joomla! maintains two primary classifications of user groups. The classifications are primarily &#039;&#039;&#039;[[S:MyLanguage/Front-end|Front-end (site)]]&#039;&#039;&#039; and &#039;&#039;&#039;[[S:MyLanguage/Back-end|Back-end (administration)]]&#039;&#039;&#039; user groups. Front-end users are only allowed to log in using the public facing side of the website.  Back-end users are allowed to log in on the administrative side of the web site. As a result these users are also referred to as administrative users, or admins.&lt;br /&gt;
&lt;br /&gt;
Administrative logins are available by default at &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://example.org/administrator&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Back-end users are further separated into 2 groups===&lt;br /&gt;
&lt;br /&gt;
* Administrator&lt;br /&gt;
* Super Users&lt;br /&gt;
&lt;br /&gt;
The most privileged of these users belong to the Super Users group. Super Users have the highest privilege level and can make changes or add new features or content to any section of a Joomla! site.&lt;br /&gt;
&lt;br /&gt;
===Points to note on Super Users===&lt;br /&gt;
&lt;br /&gt;
* The default Super Users is &#039;admin&#039; and is installed with every Joomla! site&lt;br /&gt;
* Super Users are able to log in on the Front-end or Back-end of the site&lt;br /&gt;
* A Joomla! site may have more than one designated Super Users&lt;br /&gt;
&lt;br /&gt;
[[Category:Glossary]]&lt;br /&gt;
[[Category:Needs review]]&lt;/div&gt;</summary>
		<author><name>Juliano.freitas</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Translations:Administrator_(User)/Page_display_title/pt-br&amp;diff=405097</id>
		<title>Translations:Administrator (User)/Page display title/pt-br</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Translations:Administrator_(User)/Page_display_title/pt-br&amp;diff=405097"/>
		<updated>2017-05-17T02:42:16Z</updated>

		<summary type="html">&lt;p&gt;Juliano.freitas: Created page with &amp;quot;Administrador (Usuário)&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Administrador (Usuário)&lt;/div&gt;</summary>
		<author><name>Juliano.freitas</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Translations:Accesslevel_form_field_type/Page_display_title/pt-br&amp;diff=405096</id>
		<title>Translations:Accesslevel form field type/Page display title/pt-br</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Translations:Accesslevel_form_field_type/Page_display_title/pt-br&amp;diff=405096"/>
		<updated>2017-05-17T02:41:31Z</updated>

		<summary type="html">&lt;p&gt;Juliano.freitas: Created page with &amp;quot;Tipo de campo de formulário - Nível de Acesso&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Tipo de campo de formulário - Nível de Acesso&lt;/div&gt;</summary>
		<author><name>Juliano.freitas</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Accesslevel_form_field_type/pt-br&amp;diff=405095</id>
		<title>Accesslevel form field type/pt-br</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Accesslevel_form_field_type/pt-br&amp;diff=405095"/>
		<updated>2017-05-17T02:40:30Z</updated>

		<summary type="html">&lt;p&gt;Juliano.freitas: Created page with &amp;quot;Fornece uma lista suspensa de opções de nível de acesso com a opção atual selecionada.&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&amp;lt;languages /&amp;gt;&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
Fornece uma lista suspensa de opções de nível de acesso com a opção atual selecionada.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;nome&#039;&#039;&#039; (obrigatório) é o nome exclusivo do parâmetro.&lt;br /&gt;
* &#039;&#039;&#039;tipo&#039;&#039;&#039; (obrigatório) precisa ser &#039;&#039;nível de acesso&#039;&#039;.&lt;br /&gt;
* &#039;&#039;&#039;rótulo&#039;&#039;&#039; (obrigatório) (traduzível) é o título descritivo do campo.&lt;br /&gt;
* &#039;&#039;&#039;descrição&#039;&#039;&#039; texto de descrição para o campo de formulário.&lt;br /&gt;
* &#039;&#039;&#039;classe&#039;&#039;&#039; classes adicionais para configuração de estilo.&lt;br /&gt;
&lt;br /&gt;
Implementado por: libraries/joomla/form/fields/access.php&lt;br /&gt;
&lt;br /&gt;
Exemplo de Definição XML:&lt;br /&gt;
&amp;lt;source type=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;field name=&amp;quot;access&amp;quot; type=&amp;quot;accesslevel&amp;quot;&lt;br /&gt;
	label=&amp;quot;JFIELD_ACCESS_LABEL&amp;quot;&lt;br /&gt;
	description=&amp;quot;JFIELD_ACCESS_DESC&amp;quot;&lt;br /&gt;
	class=&amp;quot;span12 small&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Standard form field types/pt-BR|Tipos de campo de formulário padrões]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Juliano.freitas</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Translations:Accesslevel_form_field_type/1/pt-br&amp;diff=405094</id>
		<title>Translations:Accesslevel form field type/1/pt-br</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Translations:Accesslevel_form_field_type/1/pt-br&amp;diff=405094"/>
		<updated>2017-05-17T02:40:30Z</updated>

		<summary type="html">&lt;p&gt;Juliano.freitas: Created page with &amp;quot;Fornece uma lista suspensa de opções de nível de acesso com a opção atual selecionada.&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Fornece uma lista suspensa de opções de nível de acesso com a opção atual selecionada.&lt;/div&gt;</summary>
		<author><name>Juliano.freitas</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Accesslevel_form_field_type/pt-br&amp;diff=405093</id>
		<title>Accesslevel form field type/pt-br</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Accesslevel_form_field_type/pt-br&amp;diff=405093"/>
		<updated>2017-05-17T02:39:49Z</updated>

		<summary type="html">&lt;p&gt;Juliano.freitas: Created page with &amp;quot;* &amp;#039;&amp;#039;&amp;#039;tipo&amp;#039;&amp;#039;&amp;#039; (obrigatório) precisa ser &amp;#039;&amp;#039;nível de acesso&amp;#039;&amp;#039;.&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&amp;lt;languages /&amp;gt;&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
Provides a dropdown list of accesslevel options with the current option selected.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;nome&#039;&#039;&#039; (obrigatório) é o nome exclusivo do parâmetro.&lt;br /&gt;
* &#039;&#039;&#039;tipo&#039;&#039;&#039; (obrigatório) precisa ser &#039;&#039;nível de acesso&#039;&#039;.&lt;br /&gt;
* &#039;&#039;&#039;rótulo&#039;&#039;&#039; (obrigatório) (traduzível) é o título descritivo do campo.&lt;br /&gt;
* &#039;&#039;&#039;descrição&#039;&#039;&#039; texto de descrição para o campo de formulário.&lt;br /&gt;
* &#039;&#039;&#039;classe&#039;&#039;&#039; classes adicionais para configuração de estilo.&lt;br /&gt;
&lt;br /&gt;
Implementado por: libraries/joomla/form/fields/access.php&lt;br /&gt;
&lt;br /&gt;
Exemplo de Definição XML:&lt;br /&gt;
&amp;lt;source type=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;field name=&amp;quot;access&amp;quot; type=&amp;quot;accesslevel&amp;quot;&lt;br /&gt;
	label=&amp;quot;JFIELD_ACCESS_LABEL&amp;quot;&lt;br /&gt;
	description=&amp;quot;JFIELD_ACCESS_DESC&amp;quot;&lt;br /&gt;
	class=&amp;quot;span12 small&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Standard form field types/pt-BR|Tipos de campo de formulário padrões]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Juliano.freitas</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Translations:Accesslevel_form_field_type/3/pt-br&amp;diff=405092</id>
		<title>Translations:Accesslevel form field type/3/pt-br</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Translations:Accesslevel_form_field_type/3/pt-br&amp;diff=405092"/>
		<updated>2017-05-17T02:39:48Z</updated>

		<summary type="html">&lt;p&gt;Juliano.freitas: Created page with &amp;quot;* &amp;#039;&amp;#039;&amp;#039;tipo&amp;#039;&amp;#039;&amp;#039; (obrigatório) precisa ser &amp;#039;&amp;#039;nível de acesso&amp;#039;&amp;#039;.&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* &#039;&#039;&#039;tipo&#039;&#039;&#039; (obrigatório) precisa ser &#039;&#039;nível de acesso&#039;&#039;.&lt;/div&gt;</summary>
		<author><name>Juliano.freitas</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Working_with_git_and_github/pt-br&amp;diff=404088</id>
		<title>Working with git and github/pt-br</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Working_with_git_and_github/pt-br&amp;diff=404088"/>
		<updated>2017-05-14T03:10:11Z</updated>

		<summary type="html">&lt;p&gt;Juliano.freitas: Created page with &amp;quot;Category: Bug Squad/pt-br Category: Development/pt-br Category:GitHub/pt-br&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&amp;lt;languages /&amp;gt;&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Introdução =&lt;br /&gt;
Este documento irá fornecer informações sobre como contribuir para o CMD Joomla! com a ajuda do Git e GitHub. Se você gosta de fazer uma alteração simples (um arquivo apenas), é mais fácil usar esta documentação: [[S:MyLanguage/Using the Github UI to Make Pull Requests|Usando a interface do Github para Fazer Requisições Pull]]&lt;br /&gt;
Se você gosta de adicionar mudanças mais complexas ou está apenas interessado nisso, continue lendo!&lt;br /&gt;
&lt;br /&gt;
== O que são Git e GitHub? ==&lt;br /&gt;
&lt;br /&gt;
O Git é um sistema de controle de versão distribuído. É um sistema que registra alterações em arquivos e mantém essas alterações em um arquivo de histórico. Você pode sempre olhar para trás para uma versão anterior do seu código e restaurar as alterações, se quiser. Devido ao histórico do arquivo, o Git é muito útil quando você trabalha com muitas pessoas juntas no mesmo projeto.&lt;br /&gt;
&lt;br /&gt;
Aqui está como o GitHub pode ser usado. [https://www.github.com GitHub] é um site que ajuda a gerenciar Projetos Git de forma visual. Como proprietário de um projeto, você pode alterar o código e comparar diferentes versões. Como usuário do projeto, você pode contribuir fazendo uma Requisição Pull. Uma Requisição Pull é uma solicitação para o proprietário puxar algum código para o projeto. Você está oferecendo um pedaço de código (talvez uma solução para um bug) e perguntando se o proprietário do projeto gostaria de usá-lo. Se o proprietário gostar, ele pode fundir (adicionar) ao seu projeto.&lt;br /&gt;
&lt;br /&gt;
Joomla! usa GitHub e Git para manter seu código. Todos podem contribuir com o software Joomla!. A URL para o projeto Joomla! CMS no GitHub é: https://github.com/joomla/joomla-cms&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Começando! =&lt;br /&gt;
== Cadastrar-se no GitHub e instalar o Git ==&lt;br /&gt;
Primeiro, você vai precisar se registrar no [http://www.github.com GitHub]. Isto é grátis e fácil de se fazer. Basta seguir os passos fornecidos.&lt;br /&gt;
&lt;br /&gt;
Agora que estamos registrados, precisamos instalar o Git. A versão mais recente do Git pode ser encontrada em http://git-scm.com. Faça o download e abra o instalador. O Git é um programa CLI (Command Line Interface ou Interface de Linha Comando em Português). No início isso pode ser confuso e um pouco assustador, mas este documento irá guiá-lo através deste processo.&lt;br /&gt;
&lt;br /&gt;
Se você não é um usuário avançado, apenas execute o instalador e precione os botões &amp;quot;próximo&amp;quot; até que o programa esteja instalado. O Git não danificará o seu sistema. Mais tarde você pode removê-lo como qualquer outro programa, se quiser.&lt;br /&gt;
&lt;br /&gt;
Once we installed Git, we open the program called &amp;quot;Git Bash.&amp;quot; A command line will be opened. We&#039;re going to tell Git our name and email address. Git will use this information when we contribute to a project.&lt;br /&gt;
With the following commands we give Git that information:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git config --global user.name &amp;quot;Your name&amp;quot;&lt;br /&gt;
git config --global user.email youremail@mail.com&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the above commands, and all other commands given in this documentation, each line is a new command. So you type the fist line, press enter and then type the second line and press enter.&lt;br /&gt;
&lt;br /&gt;
We are now ready to use Git and go farther with setting up our test installation.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Setting up a test installation=&lt;br /&gt;
For our test installation we need a Web server program so that we can install and run Joomla! on our computer. There are a lot of programs that can do that such as [https://www.mamp.info/ MAMP] and [https://www.apachefriends.org/ XAMPP]. Download an install one of them.&lt;br /&gt;
&lt;br /&gt;
After the installation of such a program (I use MAMP in this documentation), we going to install the latest version of Joomla!. In our case, the latest version of Joomla! is not the last stable release. The last version of Joomla! is the staging branch on GitHub.&lt;br /&gt;
First, let me explain a little bit more about GitHub.&lt;br /&gt;
&lt;br /&gt;
== Fork and Clone Joomla! ==&lt;br /&gt;
On GitHub you can find projects, so called Repositories. Inside a project you might find several versions. Such a version is called a Branch. Joomla! has the following branches:&lt;br /&gt;
* &#039;&#039;&#039;Staging:&#039;&#039;&#039; This branch contains the latest bug fixes and new features of Joomla!&lt;br /&gt;
* &#039;&#039;&#039;Master:&#039;&#039;&#039; This branch is the current stable version of Joomla!&lt;br /&gt;
* &#039;&#039;&#039;3.5-dev&#039;&#039;&#039; This branch contains the files for Joomla! 3.5, which is not stable at this writing.&lt;br /&gt;
&lt;br /&gt;
On our test location we going to use the &#039;&#039;&#039;Staging&#039;&#039;&#039; branch but if we should use this branch directly we have problem. We cannot modify this branch because we are not the owner of it.&lt;br /&gt;
We are going to make a copy of it. On GitHub this is called a Fork. We are the owner of that copy so we can modify it. After modifying we compare our fork with the original project. Then we can make a Pull Request for the changes we&#039;ve made. More about that later.&lt;br /&gt;
You can Fork a branch by pressing the Fork button on the [https://github.com/joomla/joomla-cms Joomla! CMS Github Repository]. This button is located at the right top of the page.&lt;br /&gt;
[[File:Github-fork-button.png|none]]&lt;br /&gt;
&lt;br /&gt;
After forking, we are going to install Joomla! on our local Web server. Go to the folder were you can run files on you Web server. Most of the program use a folder called &amp;lt;tt&amp;gt;htdocs&amp;lt;/tt&amp;gt;. Once we are inside that folder, press the right mouse button an click on: &amp;quot;Git Bash Here&amp;quot;. The command line will open for this location.&lt;br /&gt;
&lt;br /&gt;
Type the following command to download the files from your Fork of the Joomla! CMS to your computer. Please replace &amp;lt;i&amp;gt;username&amp;lt;/i&amp;gt; with the username you are using on GitHub.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git clone https://github.com/username/joomla-cms.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For all commands given in this documentation, you have to open Git via the above described steps. Please remember that for other commands in this documentation. &lt;br /&gt;
&lt;br /&gt;
Once Git is ready, open your browser and go to the installation on your localhost. Usually the URL is something like: &amp;lt;tt&amp;gt;http://localhost/joomla-cms&amp;lt;/tt&amp;gt;. You will now see the default Joomla! installation process. &lt;br /&gt;
&lt;br /&gt;
== Install Joomla! ==&lt;br /&gt;
The installation of Joomla! for our local test installation is almost the same as a regular installation. There are a two little differences.&lt;br /&gt;
&lt;br /&gt;
For the database settings, the password and username are default. Most often the username is &amp;lt;tt&amp;gt;root&amp;lt;/tt&amp;gt; and the password is also &amp;lt;tt&amp;gt;root&amp;lt;/tt&amp;gt; or there is no password. If you still can&#039;t connect to the database, look in the manual for your local Web server for the username and password.&lt;br /&gt;
&lt;br /&gt;
The last difference is the final step of the installation. Normally we must delete the installation folder to go further to the back-end or front-end of Joomla!. For a test installation we can skip this part and go directly to the back-end or front-end. Don&#039;t remove the installation folder. It can be very useful when we have to install Joomla again.&lt;br /&gt;
&lt;br /&gt;
=Make Your Changes=&lt;br /&gt;
Now it is time to made our file changes to Joomla!. All changes we make will be registered and monitored by Git. At any moment you can type the command &amp;lt;tt&amp;gt;git status&amp;lt;/tt&amp;gt; to see which files are modified or untracked. Untracked means that the file at that location is new for Git.&lt;br /&gt;
&lt;br /&gt;
If you made a mistake or you would like to restore a file, use this command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git checkout path/to/file&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you like to remove all changes you made, use the following commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git checkout .&lt;br /&gt;
git clean -f -d&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The first command resets all files. The second command removes untracked files and folders.&lt;br /&gt;
&lt;br /&gt;
==Publish Our Changes on GitHub==&lt;br /&gt;
&lt;br /&gt;
=Push the Change to the Fork=&lt;br /&gt;
After making our changes, we have to upload our changes to our repository on GitHub. After that, we can make a pull request with our changes.&lt;br /&gt;
&lt;br /&gt;
Uploading changes is called &amp;lt;tt&amp;gt;push&amp;lt;/tt&amp;gt; in Git terms. Before we can do that, we have to do something very important. We must create a new branch for our changes. (A branch is a version of our project, remember?) If we don&#039;t do that and made our change directly to the staging branch, the first time there won&#039;t be a problem. But if we made changes for the second time, and the change we made the first time are not merged yet, all these changes will registered too as new changes.&lt;br /&gt;
&lt;br /&gt;
So the first command we are going to run will create a new branch. It will prevent the above described problem.&lt;br /&gt;
Replace name-new-branch with the name of the new branch. This name must be short, and can only contain lower case letters and numbers. Do &#039;&#039;&#039;NOT&#039;&#039;&#039; use spaces. Instead of spaces, use - (minus).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git checkout -b name-new-branch&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The next command tells git that all made changes are good, and are ready to commit.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git add --all&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The following command adds our change to the branch. Please replace the message with a short description of your changes. This description will be the title of the pull request we are going to make.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git commit -m &amp;quot;description&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The final command will push (upload) the changes to our fork. Please replace name-new-branch with the name of the branch you made a few steps above.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git push origin name-new-branch&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Compare Forks and Make a Pull Request==&lt;br /&gt;
After pushing our change to GitHub, go to your fork of the Joomla! CMS.&lt;br /&gt;
&lt;br /&gt;
=Informação Extra=&lt;br /&gt;
Because the staging version of Joomla! can change any moment, it is very useful to have the possibility for keeping our fork up-to-date. We can do that by adding a remote to our forked project:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git remote add upstream https://github.com/joomla/joomla-cms.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We now added a remote called &amp;quot;upstream&amp;quot;. With the following command, Git will search for new contribution (commits) in the staging branch we don&#039;t have in our fork. If it found some, it will add them to our fork:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git pull upstream staging&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The changes are now only made on our local fork. To upload them to GitHub use the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git push&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category: Bug Squad/pt-br]]&lt;br /&gt;
[[Category: Development/pt-br]]&lt;br /&gt;
[[Category:GitHub/pt-br]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Juliano.freitas</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Translations:Working_with_git_and_github/54/pt-br&amp;diff=404087</id>
		<title>Translations:Working with git and github/54/pt-br</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Translations:Working_with_git_and_github/54/pt-br&amp;diff=404087"/>
		<updated>2017-05-14T03:10:10Z</updated>

		<summary type="html">&lt;p&gt;Juliano.freitas: Created page with &amp;quot;Category: Bug Squad/pt-br Category: Development/pt-br Category:GitHub/pt-br&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category: Bug Squad/pt-br]]&lt;br /&gt;
[[Category: Development/pt-br]]&lt;br /&gt;
[[Category:GitHub/pt-br]]&lt;/div&gt;</summary>
		<author><name>Juliano.freitas</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Working_with_git_and_github/pt-br&amp;diff=404086</id>
		<title>Working with git and github/pt-br</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Working_with_git_and_github/pt-br&amp;diff=404086"/>
		<updated>2017-05-14T03:09:14Z</updated>

		<summary type="html">&lt;p&gt;Juliano.freitas: Created page with &amp;quot;=Informação Extra=&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&amp;lt;languages /&amp;gt;&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Introdução =&lt;br /&gt;
Este documento irá fornecer informações sobre como contribuir para o CMD Joomla! com a ajuda do Git e GitHub. Se você gosta de fazer uma alteração simples (um arquivo apenas), é mais fácil usar esta documentação: [[S:MyLanguage/Using the Github UI to Make Pull Requests|Usando a interface do Github para Fazer Requisições Pull]]&lt;br /&gt;
Se você gosta de adicionar mudanças mais complexas ou está apenas interessado nisso, continue lendo!&lt;br /&gt;
&lt;br /&gt;
== O que são Git e GitHub? ==&lt;br /&gt;
&lt;br /&gt;
O Git é um sistema de controle de versão distribuído. É um sistema que registra alterações em arquivos e mantém essas alterações em um arquivo de histórico. Você pode sempre olhar para trás para uma versão anterior do seu código e restaurar as alterações, se quiser. Devido ao histórico do arquivo, o Git é muito útil quando você trabalha com muitas pessoas juntas no mesmo projeto.&lt;br /&gt;
&lt;br /&gt;
Aqui está como o GitHub pode ser usado. [https://www.github.com GitHub] é um site que ajuda a gerenciar Projetos Git de forma visual. Como proprietário de um projeto, você pode alterar o código e comparar diferentes versões. Como usuário do projeto, você pode contribuir fazendo uma Requisição Pull. Uma Requisição Pull é uma solicitação para o proprietário puxar algum código para o projeto. Você está oferecendo um pedaço de código (talvez uma solução para um bug) e perguntando se o proprietário do projeto gostaria de usá-lo. Se o proprietário gostar, ele pode fundir (adicionar) ao seu projeto.&lt;br /&gt;
&lt;br /&gt;
Joomla! usa GitHub e Git para manter seu código. Todos podem contribuir com o software Joomla!. A URL para o projeto Joomla! CMS no GitHub é: https://github.com/joomla/joomla-cms&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Começando! =&lt;br /&gt;
== Cadastrar-se no GitHub e instalar o Git ==&lt;br /&gt;
Primeiro, você vai precisar se registrar no [http://www.github.com GitHub]. Isto é grátis e fácil de se fazer. Basta seguir os passos fornecidos.&lt;br /&gt;
&lt;br /&gt;
Agora que estamos registrados, precisamos instalar o Git. A versão mais recente do Git pode ser encontrada em http://git-scm.com. Faça o download e abra o instalador. O Git é um programa CLI (Command Line Interface ou Interface de Linha Comando em Português). No início isso pode ser confuso e um pouco assustador, mas este documento irá guiá-lo através deste processo.&lt;br /&gt;
&lt;br /&gt;
Se você não é um usuário avançado, apenas execute o instalador e precione os botões &amp;quot;próximo&amp;quot; até que o programa esteja instalado. O Git não danificará o seu sistema. Mais tarde você pode removê-lo como qualquer outro programa, se quiser.&lt;br /&gt;
&lt;br /&gt;
Once we installed Git, we open the program called &amp;quot;Git Bash.&amp;quot; A command line will be opened. We&#039;re going to tell Git our name and email address. Git will use this information when we contribute to a project.&lt;br /&gt;
With the following commands we give Git that information:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git config --global user.name &amp;quot;Your name&amp;quot;&lt;br /&gt;
git config --global user.email youremail@mail.com&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the above commands, and all other commands given in this documentation, each line is a new command. So you type the fist line, press enter and then type the second line and press enter.&lt;br /&gt;
&lt;br /&gt;
We are now ready to use Git and go farther with setting up our test installation.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Setting up a test installation=&lt;br /&gt;
For our test installation we need a Web server program so that we can install and run Joomla! on our computer. There are a lot of programs that can do that such as [https://www.mamp.info/ MAMP] and [https://www.apachefriends.org/ XAMPP]. Download an install one of them.&lt;br /&gt;
&lt;br /&gt;
After the installation of such a program (I use MAMP in this documentation), we going to install the latest version of Joomla!. In our case, the latest version of Joomla! is not the last stable release. The last version of Joomla! is the staging branch on GitHub.&lt;br /&gt;
First, let me explain a little bit more about GitHub.&lt;br /&gt;
&lt;br /&gt;
== Fork and Clone Joomla! ==&lt;br /&gt;
On GitHub you can find projects, so called Repositories. Inside a project you might find several versions. Such a version is called a Branch. Joomla! has the following branches:&lt;br /&gt;
* &#039;&#039;&#039;Staging:&#039;&#039;&#039; This branch contains the latest bug fixes and new features of Joomla!&lt;br /&gt;
* &#039;&#039;&#039;Master:&#039;&#039;&#039; This branch is the current stable version of Joomla!&lt;br /&gt;
* &#039;&#039;&#039;3.5-dev&#039;&#039;&#039; This branch contains the files for Joomla! 3.5, which is not stable at this writing.&lt;br /&gt;
&lt;br /&gt;
On our test location we going to use the &#039;&#039;&#039;Staging&#039;&#039;&#039; branch but if we should use this branch directly we have problem. We cannot modify this branch because we are not the owner of it.&lt;br /&gt;
We are going to make a copy of it. On GitHub this is called a Fork. We are the owner of that copy so we can modify it. After modifying we compare our fork with the original project. Then we can make a Pull Request for the changes we&#039;ve made. More about that later.&lt;br /&gt;
You can Fork a branch by pressing the Fork button on the [https://github.com/joomla/joomla-cms Joomla! CMS Github Repository]. This button is located at the right top of the page.&lt;br /&gt;
[[File:Github-fork-button.png|none]]&lt;br /&gt;
&lt;br /&gt;
After forking, we are going to install Joomla! on our local Web server. Go to the folder were you can run files on you Web server. Most of the program use a folder called &amp;lt;tt&amp;gt;htdocs&amp;lt;/tt&amp;gt;. Once we are inside that folder, press the right mouse button an click on: &amp;quot;Git Bash Here&amp;quot;. The command line will open for this location.&lt;br /&gt;
&lt;br /&gt;
Type the following command to download the files from your Fork of the Joomla! CMS to your computer. Please replace &amp;lt;i&amp;gt;username&amp;lt;/i&amp;gt; with the username you are using on GitHub.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git clone https://github.com/username/joomla-cms.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For all commands given in this documentation, you have to open Git via the above described steps. Please remember that for other commands in this documentation. &lt;br /&gt;
&lt;br /&gt;
Once Git is ready, open your browser and go to the installation on your localhost. Usually the URL is something like: &amp;lt;tt&amp;gt;http://localhost/joomla-cms&amp;lt;/tt&amp;gt;. You will now see the default Joomla! installation process. &lt;br /&gt;
&lt;br /&gt;
== Install Joomla! ==&lt;br /&gt;
The installation of Joomla! for our local test installation is almost the same as a regular installation. There are a two little differences.&lt;br /&gt;
&lt;br /&gt;
For the database settings, the password and username are default. Most often the username is &amp;lt;tt&amp;gt;root&amp;lt;/tt&amp;gt; and the password is also &amp;lt;tt&amp;gt;root&amp;lt;/tt&amp;gt; or there is no password. If you still can&#039;t connect to the database, look in the manual for your local Web server for the username and password.&lt;br /&gt;
&lt;br /&gt;
The last difference is the final step of the installation. Normally we must delete the installation folder to go further to the back-end or front-end of Joomla!. For a test installation we can skip this part and go directly to the back-end or front-end. Don&#039;t remove the installation folder. It can be very useful when we have to install Joomla again.&lt;br /&gt;
&lt;br /&gt;
=Make Your Changes=&lt;br /&gt;
Now it is time to made our file changes to Joomla!. All changes we make will be registered and monitored by Git. At any moment you can type the command &amp;lt;tt&amp;gt;git status&amp;lt;/tt&amp;gt; to see which files are modified or untracked. Untracked means that the file at that location is new for Git.&lt;br /&gt;
&lt;br /&gt;
If you made a mistake or you would like to restore a file, use this command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git checkout path/to/file&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you like to remove all changes you made, use the following commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git checkout .&lt;br /&gt;
git clean -f -d&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The first command resets all files. The second command removes untracked files and folders.&lt;br /&gt;
&lt;br /&gt;
==Publish Our Changes on GitHub==&lt;br /&gt;
&lt;br /&gt;
=Push the Change to the Fork=&lt;br /&gt;
After making our changes, we have to upload our changes to our repository on GitHub. After that, we can make a pull request with our changes.&lt;br /&gt;
&lt;br /&gt;
Uploading changes is called &amp;lt;tt&amp;gt;push&amp;lt;/tt&amp;gt; in Git terms. Before we can do that, we have to do something very important. We must create a new branch for our changes. (A branch is a version of our project, remember?) If we don&#039;t do that and made our change directly to the staging branch, the first time there won&#039;t be a problem. But if we made changes for the second time, and the change we made the first time are not merged yet, all these changes will registered too as new changes.&lt;br /&gt;
&lt;br /&gt;
So the first command we are going to run will create a new branch. It will prevent the above described problem.&lt;br /&gt;
Replace name-new-branch with the name of the new branch. This name must be short, and can only contain lower case letters and numbers. Do &#039;&#039;&#039;NOT&#039;&#039;&#039; use spaces. Instead of spaces, use - (minus).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git checkout -b name-new-branch&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The next command tells git that all made changes are good, and are ready to commit.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git add --all&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The following command adds our change to the branch. Please replace the message with a short description of your changes. This description will be the title of the pull request we are going to make.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git commit -m &amp;quot;description&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The final command will push (upload) the changes to our fork. Please replace name-new-branch with the name of the branch you made a few steps above.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git push origin name-new-branch&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Compare Forks and Make a Pull Request==&lt;br /&gt;
After pushing our change to GitHub, go to your fork of the Joomla! CMS.&lt;br /&gt;
&lt;br /&gt;
=Informação Extra=&lt;br /&gt;
Because the staging version of Joomla! can change any moment, it is very useful to have the possibility for keeping our fork up-to-date. We can do that by adding a remote to our forked project:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git remote add upstream https://github.com/joomla/joomla-cms.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We now added a remote called &amp;quot;upstream&amp;quot;. With the following command, Git will search for new contribution (commits) in the staging branch we don&#039;t have in our fork. If it found some, it will add them to our fork:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git pull upstream staging&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The changes are now only made on our local fork. To upload them to GitHub use the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git push&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category: Bug Squad]]&lt;br /&gt;
[[Category: Development]]&lt;br /&gt;
[[Category:GitHub]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Juliano.freitas</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Translations:Working_with_git_and_github/50/pt-br&amp;diff=404085</id>
		<title>Translations:Working with git and github/50/pt-br</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Translations:Working_with_git_and_github/50/pt-br&amp;diff=404085"/>
		<updated>2017-05-14T03:09:13Z</updated>

		<summary type="html">&lt;p&gt;Juliano.freitas: Created page with &amp;quot;=Informação Extra=&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Informação Extra=&lt;/div&gt;</summary>
		<author><name>Juliano.freitas</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Working_with_git_and_github/pt-br&amp;diff=404084</id>
		<title>Working with git and github/pt-br</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Working_with_git_and_github/pt-br&amp;diff=404084"/>
		<updated>2017-05-14T03:08:39Z</updated>

		<summary type="html">&lt;p&gt;Juliano.freitas: Created page with &amp;quot;Se você não é um usuário avançado, apenas execute o instalador e precione os botões &amp;quot;próximo&amp;quot; até que o programa esteja instalado. O Git não danificará o seu sistema...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&amp;lt;languages /&amp;gt;&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Introdução =&lt;br /&gt;
Este documento irá fornecer informações sobre como contribuir para o CMD Joomla! com a ajuda do Git e GitHub. Se você gosta de fazer uma alteração simples (um arquivo apenas), é mais fácil usar esta documentação: [[S:MyLanguage/Using the Github UI to Make Pull Requests|Usando a interface do Github para Fazer Requisições Pull]]&lt;br /&gt;
Se você gosta de adicionar mudanças mais complexas ou está apenas interessado nisso, continue lendo!&lt;br /&gt;
&lt;br /&gt;
== O que são Git e GitHub? ==&lt;br /&gt;
&lt;br /&gt;
O Git é um sistema de controle de versão distribuído. É um sistema que registra alterações em arquivos e mantém essas alterações em um arquivo de histórico. Você pode sempre olhar para trás para uma versão anterior do seu código e restaurar as alterações, se quiser. Devido ao histórico do arquivo, o Git é muito útil quando você trabalha com muitas pessoas juntas no mesmo projeto.&lt;br /&gt;
&lt;br /&gt;
Aqui está como o GitHub pode ser usado. [https://www.github.com GitHub] é um site que ajuda a gerenciar Projetos Git de forma visual. Como proprietário de um projeto, você pode alterar o código e comparar diferentes versões. Como usuário do projeto, você pode contribuir fazendo uma Requisição Pull. Uma Requisição Pull é uma solicitação para o proprietário puxar algum código para o projeto. Você está oferecendo um pedaço de código (talvez uma solução para um bug) e perguntando se o proprietário do projeto gostaria de usá-lo. Se o proprietário gostar, ele pode fundir (adicionar) ao seu projeto.&lt;br /&gt;
&lt;br /&gt;
Joomla! usa GitHub e Git para manter seu código. Todos podem contribuir com o software Joomla!. A URL para o projeto Joomla! CMS no GitHub é: https://github.com/joomla/joomla-cms&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Começando! =&lt;br /&gt;
== Cadastrar-se no GitHub e instalar o Git ==&lt;br /&gt;
Primeiro, você vai precisar se registrar no [http://www.github.com GitHub]. Isto é grátis e fácil de se fazer. Basta seguir os passos fornecidos.&lt;br /&gt;
&lt;br /&gt;
Agora que estamos registrados, precisamos instalar o Git. A versão mais recente do Git pode ser encontrada em http://git-scm.com. Faça o download e abra o instalador. O Git é um programa CLI (Command Line Interface ou Interface de Linha Comando em Português). No início isso pode ser confuso e um pouco assustador, mas este documento irá guiá-lo através deste processo.&lt;br /&gt;
&lt;br /&gt;
Se você não é um usuário avançado, apenas execute o instalador e precione os botões &amp;quot;próximo&amp;quot; até que o programa esteja instalado. O Git não danificará o seu sistema. Mais tarde você pode removê-lo como qualquer outro programa, se quiser.&lt;br /&gt;
&lt;br /&gt;
Once we installed Git, we open the program called &amp;quot;Git Bash.&amp;quot; A command line will be opened. We&#039;re going to tell Git our name and email address. Git will use this information when we contribute to a project.&lt;br /&gt;
With the following commands we give Git that information:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git config --global user.name &amp;quot;Your name&amp;quot;&lt;br /&gt;
git config --global user.email youremail@mail.com&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the above commands, and all other commands given in this documentation, each line is a new command. So you type the fist line, press enter and then type the second line and press enter.&lt;br /&gt;
&lt;br /&gt;
We are now ready to use Git and go farther with setting up our test installation.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Setting up a test installation=&lt;br /&gt;
For our test installation we need a Web server program so that we can install and run Joomla! on our computer. There are a lot of programs that can do that such as [https://www.mamp.info/ MAMP] and [https://www.apachefriends.org/ XAMPP]. Download an install one of them.&lt;br /&gt;
&lt;br /&gt;
After the installation of such a program (I use MAMP in this documentation), we going to install the latest version of Joomla!. In our case, the latest version of Joomla! is not the last stable release. The last version of Joomla! is the staging branch on GitHub.&lt;br /&gt;
First, let me explain a little bit more about GitHub.&lt;br /&gt;
&lt;br /&gt;
== Fork and Clone Joomla! ==&lt;br /&gt;
On GitHub you can find projects, so called Repositories. Inside a project you might find several versions. Such a version is called a Branch. Joomla! has the following branches:&lt;br /&gt;
* &#039;&#039;&#039;Staging:&#039;&#039;&#039; This branch contains the latest bug fixes and new features of Joomla!&lt;br /&gt;
* &#039;&#039;&#039;Master:&#039;&#039;&#039; This branch is the current stable version of Joomla!&lt;br /&gt;
* &#039;&#039;&#039;3.5-dev&#039;&#039;&#039; This branch contains the files for Joomla! 3.5, which is not stable at this writing.&lt;br /&gt;
&lt;br /&gt;
On our test location we going to use the &#039;&#039;&#039;Staging&#039;&#039;&#039; branch but if we should use this branch directly we have problem. We cannot modify this branch because we are not the owner of it.&lt;br /&gt;
We are going to make a copy of it. On GitHub this is called a Fork. We are the owner of that copy so we can modify it. After modifying we compare our fork with the original project. Then we can make a Pull Request for the changes we&#039;ve made. More about that later.&lt;br /&gt;
You can Fork a branch by pressing the Fork button on the [https://github.com/joomla/joomla-cms Joomla! CMS Github Repository]. This button is located at the right top of the page.&lt;br /&gt;
[[File:Github-fork-button.png|none]]&lt;br /&gt;
&lt;br /&gt;
After forking, we are going to install Joomla! on our local Web server. Go to the folder were you can run files on you Web server. Most of the program use a folder called &amp;lt;tt&amp;gt;htdocs&amp;lt;/tt&amp;gt;. Once we are inside that folder, press the right mouse button an click on: &amp;quot;Git Bash Here&amp;quot;. The command line will open for this location.&lt;br /&gt;
&lt;br /&gt;
Type the following command to download the files from your Fork of the Joomla! CMS to your computer. Please replace &amp;lt;i&amp;gt;username&amp;lt;/i&amp;gt; with the username you are using on GitHub.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git clone https://github.com/username/joomla-cms.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For all commands given in this documentation, you have to open Git via the above described steps. Please remember that for other commands in this documentation. &lt;br /&gt;
&lt;br /&gt;
Once Git is ready, open your browser and go to the installation on your localhost. Usually the URL is something like: &amp;lt;tt&amp;gt;http://localhost/joomla-cms&amp;lt;/tt&amp;gt;. You will now see the default Joomla! installation process. &lt;br /&gt;
&lt;br /&gt;
== Install Joomla! ==&lt;br /&gt;
The installation of Joomla! for our local test installation is almost the same as a regular installation. There are a two little differences.&lt;br /&gt;
&lt;br /&gt;
For the database settings, the password and username are default. Most often the username is &amp;lt;tt&amp;gt;root&amp;lt;/tt&amp;gt; and the password is also &amp;lt;tt&amp;gt;root&amp;lt;/tt&amp;gt; or there is no password. If you still can&#039;t connect to the database, look in the manual for your local Web server for the username and password.&lt;br /&gt;
&lt;br /&gt;
The last difference is the final step of the installation. Normally we must delete the installation folder to go further to the back-end or front-end of Joomla!. For a test installation we can skip this part and go directly to the back-end or front-end. Don&#039;t remove the installation folder. It can be very useful when we have to install Joomla again.&lt;br /&gt;
&lt;br /&gt;
=Make Your Changes=&lt;br /&gt;
Now it is time to made our file changes to Joomla!. All changes we make will be registered and monitored by Git. At any moment you can type the command &amp;lt;tt&amp;gt;git status&amp;lt;/tt&amp;gt; to see which files are modified or untracked. Untracked means that the file at that location is new for Git.&lt;br /&gt;
&lt;br /&gt;
If you made a mistake or you would like to restore a file, use this command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git checkout path/to/file&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you like to remove all changes you made, use the following commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git checkout .&lt;br /&gt;
git clean -f -d&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The first command resets all files. The second command removes untracked files and folders.&lt;br /&gt;
&lt;br /&gt;
==Publish Our Changes on GitHub==&lt;br /&gt;
&lt;br /&gt;
=Push the Change to the Fork=&lt;br /&gt;
After making our changes, we have to upload our changes to our repository on GitHub. After that, we can make a pull request with our changes.&lt;br /&gt;
&lt;br /&gt;
Uploading changes is called &amp;lt;tt&amp;gt;push&amp;lt;/tt&amp;gt; in Git terms. Before we can do that, we have to do something very important. We must create a new branch for our changes. (A branch is a version of our project, remember?) If we don&#039;t do that and made our change directly to the staging branch, the first time there won&#039;t be a problem. But if we made changes for the second time, and the change we made the first time are not merged yet, all these changes will registered too as new changes.&lt;br /&gt;
&lt;br /&gt;
So the first command we are going to run will create a new branch. It will prevent the above described problem.&lt;br /&gt;
Replace name-new-branch with the name of the new branch. This name must be short, and can only contain lower case letters and numbers. Do &#039;&#039;&#039;NOT&#039;&#039;&#039; use spaces. Instead of spaces, use - (minus).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git checkout -b name-new-branch&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The next command tells git that all made changes are good, and are ready to commit.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git add --all&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The following command adds our change to the branch. Please replace the message with a short description of your changes. This description will be the title of the pull request we are going to make.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git commit -m &amp;quot;description&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The final command will push (upload) the changes to our fork. Please replace name-new-branch with the name of the branch you made a few steps above.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git push origin name-new-branch&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Compare Forks and Make a Pull Request==&lt;br /&gt;
After pushing our change to GitHub, go to your fork of the Joomla! CMS.&lt;br /&gt;
&lt;br /&gt;
=Extra information=&lt;br /&gt;
Because the staging version of Joomla! can change any moment, it is very useful to have the possibility for keeping our fork up-to-date. We can do that by adding a remote to our forked project:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git remote add upstream https://github.com/joomla/joomla-cms.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We now added a remote called &amp;quot;upstream&amp;quot;. With the following command, Git will search for new contribution (commits) in the staging branch we don&#039;t have in our fork. If it found some, it will add them to our fork:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git pull upstream staging&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The changes are now only made on our local fork. To upload them to GitHub use the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git push&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category: Bug Squad]]&lt;br /&gt;
[[Category: Development]]&lt;br /&gt;
[[Category:GitHub]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Juliano.freitas</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Translations:Working_with_git_and_github/11/pt-br&amp;diff=404083</id>
		<title>Translations:Working with git and github/11/pt-br</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Translations:Working_with_git_and_github/11/pt-br&amp;diff=404083"/>
		<updated>2017-05-14T03:08:38Z</updated>

		<summary type="html">&lt;p&gt;Juliano.freitas: Created page with &amp;quot;Se você não é um usuário avançado, apenas execute o instalador e precione os botões &amp;quot;próximo&amp;quot; até que o programa esteja instalado. O Git não danificará o seu sistema...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Se você não é um usuário avançado, apenas execute o instalador e precione os botões &amp;quot;próximo&amp;quot; até que o programa esteja instalado. O Git não danificará o seu sistema. Mais tarde você pode removê-lo como qualquer outro programa, se quiser.&lt;/div&gt;</summary>
		<author><name>Juliano.freitas</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Working_with_git_and_github/pt-br&amp;diff=404082</id>
		<title>Working with git and github/pt-br</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Working_with_git_and_github/pt-br&amp;diff=404082"/>
		<updated>2017-05-14T03:06:51Z</updated>

		<summary type="html">&lt;p&gt;Juliano.freitas: Created page with &amp;quot;Agora que estamos registrados, precisamos instalar o Git. A versão mais recente do Git pode ser encontrada em http://git-scm.com. Faça o download e abra o instalador. O Git...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&amp;lt;languages /&amp;gt;&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Introdução =&lt;br /&gt;
Este documento irá fornecer informações sobre como contribuir para o CMD Joomla! com a ajuda do Git e GitHub. Se você gosta de fazer uma alteração simples (um arquivo apenas), é mais fácil usar esta documentação: [[S:MyLanguage/Using the Github UI to Make Pull Requests|Usando a interface do Github para Fazer Requisições Pull]]&lt;br /&gt;
Se você gosta de adicionar mudanças mais complexas ou está apenas interessado nisso, continue lendo!&lt;br /&gt;
&lt;br /&gt;
== O que são Git e GitHub? ==&lt;br /&gt;
&lt;br /&gt;
O Git é um sistema de controle de versão distribuído. É um sistema que registra alterações em arquivos e mantém essas alterações em um arquivo de histórico. Você pode sempre olhar para trás para uma versão anterior do seu código e restaurar as alterações, se quiser. Devido ao histórico do arquivo, o Git é muito útil quando você trabalha com muitas pessoas juntas no mesmo projeto.&lt;br /&gt;
&lt;br /&gt;
Aqui está como o GitHub pode ser usado. [https://www.github.com GitHub] é um site que ajuda a gerenciar Projetos Git de forma visual. Como proprietário de um projeto, você pode alterar o código e comparar diferentes versões. Como usuário do projeto, você pode contribuir fazendo uma Requisição Pull. Uma Requisição Pull é uma solicitação para o proprietário puxar algum código para o projeto. Você está oferecendo um pedaço de código (talvez uma solução para um bug) e perguntando se o proprietário do projeto gostaria de usá-lo. Se o proprietário gostar, ele pode fundir (adicionar) ao seu projeto.&lt;br /&gt;
&lt;br /&gt;
Joomla! usa GitHub e Git para manter seu código. Todos podem contribuir com o software Joomla!. A URL para o projeto Joomla! CMS no GitHub é: https://github.com/joomla/joomla-cms&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Começando! =&lt;br /&gt;
== Cadastrar-se no GitHub e instalar o Git ==&lt;br /&gt;
Primeiro, você vai precisar se registrar no [http://www.github.com GitHub]. Isto é grátis e fácil de se fazer. Basta seguir os passos fornecidos.&lt;br /&gt;
&lt;br /&gt;
Agora que estamos registrados, precisamos instalar o Git. A versão mais recente do Git pode ser encontrada em http://git-scm.com. Faça o download e abra o instalador. O Git é um programa CLI (Command Line Interface ou Interface de Linha Comando em Português). No início isso pode ser confuso e um pouco assustador, mas este documento irá guiá-lo através deste processo.&lt;br /&gt;
&lt;br /&gt;
If you&#039;re not an advanced user, just run the installer and press the &amp;quot;next&amp;quot; buttons until the program is installed. Git won&#039;t damage your system. Later you can remove it just like any other program if you like.&lt;br /&gt;
&lt;br /&gt;
Once we installed Git, we open the program called &amp;quot;Git Bash.&amp;quot; A command line will be opened. We&#039;re going to tell Git our name and email address. Git will use this information when we contribute to a project.&lt;br /&gt;
With the following commands we give Git that information:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git config --global user.name &amp;quot;Your name&amp;quot;&lt;br /&gt;
git config --global user.email youremail@mail.com&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the above commands, and all other commands given in this documentation, each line is a new command. So you type the fist line, press enter and then type the second line and press enter.&lt;br /&gt;
&lt;br /&gt;
We are now ready to use Git and go farther with setting up our test installation.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Setting up a test installation=&lt;br /&gt;
For our test installation we need a Web server program so that we can install and run Joomla! on our computer. There are a lot of programs that can do that such as [https://www.mamp.info/ MAMP] and [https://www.apachefriends.org/ XAMPP]. Download an install one of them.&lt;br /&gt;
&lt;br /&gt;
After the installation of such a program (I use MAMP in this documentation), we going to install the latest version of Joomla!. In our case, the latest version of Joomla! is not the last stable release. The last version of Joomla! is the staging branch on GitHub.&lt;br /&gt;
First, let me explain a little bit more about GitHub.&lt;br /&gt;
&lt;br /&gt;
== Fork and Clone Joomla! ==&lt;br /&gt;
On GitHub you can find projects, so called Repositories. Inside a project you might find several versions. Such a version is called a Branch. Joomla! has the following branches:&lt;br /&gt;
* &#039;&#039;&#039;Staging:&#039;&#039;&#039; This branch contains the latest bug fixes and new features of Joomla!&lt;br /&gt;
* &#039;&#039;&#039;Master:&#039;&#039;&#039; This branch is the current stable version of Joomla!&lt;br /&gt;
* &#039;&#039;&#039;3.5-dev&#039;&#039;&#039; This branch contains the files for Joomla! 3.5, which is not stable at this writing.&lt;br /&gt;
&lt;br /&gt;
On our test location we going to use the &#039;&#039;&#039;Staging&#039;&#039;&#039; branch but if we should use this branch directly we have problem. We cannot modify this branch because we are not the owner of it.&lt;br /&gt;
We are going to make a copy of it. On GitHub this is called a Fork. We are the owner of that copy so we can modify it. After modifying we compare our fork with the original project. Then we can make a Pull Request for the changes we&#039;ve made. More about that later.&lt;br /&gt;
You can Fork a branch by pressing the Fork button on the [https://github.com/joomla/joomla-cms Joomla! CMS Github Repository]. This button is located at the right top of the page.&lt;br /&gt;
[[File:Github-fork-button.png|none]]&lt;br /&gt;
&lt;br /&gt;
After forking, we are going to install Joomla! on our local Web server. Go to the folder were you can run files on you Web server. Most of the program use a folder called &amp;lt;tt&amp;gt;htdocs&amp;lt;/tt&amp;gt;. Once we are inside that folder, press the right mouse button an click on: &amp;quot;Git Bash Here&amp;quot;. The command line will open for this location.&lt;br /&gt;
&lt;br /&gt;
Type the following command to download the files from your Fork of the Joomla! CMS to your computer. Please replace &amp;lt;i&amp;gt;username&amp;lt;/i&amp;gt; with the username you are using on GitHub.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git clone https://github.com/username/joomla-cms.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For all commands given in this documentation, you have to open Git via the above described steps. Please remember that for other commands in this documentation. &lt;br /&gt;
&lt;br /&gt;
Once Git is ready, open your browser and go to the installation on your localhost. Usually the URL is something like: &amp;lt;tt&amp;gt;http://localhost/joomla-cms&amp;lt;/tt&amp;gt;. You will now see the default Joomla! installation process. &lt;br /&gt;
&lt;br /&gt;
== Install Joomla! ==&lt;br /&gt;
The installation of Joomla! for our local test installation is almost the same as a regular installation. There are a two little differences.&lt;br /&gt;
&lt;br /&gt;
For the database settings, the password and username are default. Most often the username is &amp;lt;tt&amp;gt;root&amp;lt;/tt&amp;gt; and the password is also &amp;lt;tt&amp;gt;root&amp;lt;/tt&amp;gt; or there is no password. If you still can&#039;t connect to the database, look in the manual for your local Web server for the username and password.&lt;br /&gt;
&lt;br /&gt;
The last difference is the final step of the installation. Normally we must delete the installation folder to go further to the back-end or front-end of Joomla!. For a test installation we can skip this part and go directly to the back-end or front-end. Don&#039;t remove the installation folder. It can be very useful when we have to install Joomla again.&lt;br /&gt;
&lt;br /&gt;
=Make Your Changes=&lt;br /&gt;
Now it is time to made our file changes to Joomla!. All changes we make will be registered and monitored by Git. At any moment you can type the command &amp;lt;tt&amp;gt;git status&amp;lt;/tt&amp;gt; to see which files are modified or untracked. Untracked means that the file at that location is new for Git.&lt;br /&gt;
&lt;br /&gt;
If you made a mistake or you would like to restore a file, use this command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git checkout path/to/file&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you like to remove all changes you made, use the following commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git checkout .&lt;br /&gt;
git clean -f -d&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The first command resets all files. The second command removes untracked files and folders.&lt;br /&gt;
&lt;br /&gt;
==Publish Our Changes on GitHub==&lt;br /&gt;
&lt;br /&gt;
=Push the Change to the Fork=&lt;br /&gt;
After making our changes, we have to upload our changes to our repository on GitHub. After that, we can make a pull request with our changes.&lt;br /&gt;
&lt;br /&gt;
Uploading changes is called &amp;lt;tt&amp;gt;push&amp;lt;/tt&amp;gt; in Git terms. Before we can do that, we have to do something very important. We must create a new branch for our changes. (A branch is a version of our project, remember?) If we don&#039;t do that and made our change directly to the staging branch, the first time there won&#039;t be a problem. But if we made changes for the second time, and the change we made the first time are not merged yet, all these changes will registered too as new changes.&lt;br /&gt;
&lt;br /&gt;
So the first command we are going to run will create a new branch. It will prevent the above described problem.&lt;br /&gt;
Replace name-new-branch with the name of the new branch. This name must be short, and can only contain lower case letters and numbers. Do &#039;&#039;&#039;NOT&#039;&#039;&#039; use spaces. Instead of spaces, use - (minus).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git checkout -b name-new-branch&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The next command tells git that all made changes are good, and are ready to commit.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git add --all&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The following command adds our change to the branch. Please replace the message with a short description of your changes. This description will be the title of the pull request we are going to make.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git commit -m &amp;quot;description&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The final command will push (upload) the changes to our fork. Please replace name-new-branch with the name of the branch you made a few steps above.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git push origin name-new-branch&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Compare Forks and Make a Pull Request==&lt;br /&gt;
After pushing our change to GitHub, go to your fork of the Joomla! CMS.&lt;br /&gt;
&lt;br /&gt;
=Extra information=&lt;br /&gt;
Because the staging version of Joomla! can change any moment, it is very useful to have the possibility for keeping our fork up-to-date. We can do that by adding a remote to our forked project:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git remote add upstream https://github.com/joomla/joomla-cms.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We now added a remote called &amp;quot;upstream&amp;quot;. With the following command, Git will search for new contribution (commits) in the staging branch we don&#039;t have in our fork. If it found some, it will add them to our fork:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git pull upstream staging&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The changes are now only made on our local fork. To upload them to GitHub use the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git push&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category: Bug Squad]]&lt;br /&gt;
[[Category: Development]]&lt;br /&gt;
[[Category:GitHub]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Juliano.freitas</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Translations:Working_with_git_and_github/10/pt-br&amp;diff=404081</id>
		<title>Translations:Working with git and github/10/pt-br</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Translations:Working_with_git_and_github/10/pt-br&amp;diff=404081"/>
		<updated>2017-05-14T03:06:51Z</updated>

		<summary type="html">&lt;p&gt;Juliano.freitas: Created page with &amp;quot;Agora que estamos registrados, precisamos instalar o Git. A versão mais recente do Git pode ser encontrada em http://git-scm.com. Faça o download e abra o instalador. O Git...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Agora que estamos registrados, precisamos instalar o Git. A versão mais recente do Git pode ser encontrada em http://git-scm.com. Faça o download e abra o instalador. O Git é um programa CLI (Command Line Interface ou Interface de Linha Comando em Português). No início isso pode ser confuso e um pouco assustador, mas este documento irá guiá-lo através deste processo.&lt;/div&gt;</summary>
		<author><name>Juliano.freitas</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Working_with_git_and_github/pt-br&amp;diff=404080</id>
		<title>Working with git and github/pt-br</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Working_with_git_and_github/pt-br&amp;diff=404080"/>
		<updated>2017-05-14T03:04:55Z</updated>

		<summary type="html">&lt;p&gt;Juliano.freitas: Created page with &amp;quot;Primeiro, você vai precisar se registrar no [http://www.github.com GitHub]. Isto é grátis e fácil de se fazer. Basta seguir os passos fornecidos.&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&amp;lt;languages /&amp;gt;&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Introdução =&lt;br /&gt;
Este documento irá fornecer informações sobre como contribuir para o CMD Joomla! com a ajuda do Git e GitHub. Se você gosta de fazer uma alteração simples (um arquivo apenas), é mais fácil usar esta documentação: [[S:MyLanguage/Using the Github UI to Make Pull Requests|Usando a interface do Github para Fazer Requisições Pull]]&lt;br /&gt;
Se você gosta de adicionar mudanças mais complexas ou está apenas interessado nisso, continue lendo!&lt;br /&gt;
&lt;br /&gt;
== O que são Git e GitHub? ==&lt;br /&gt;
&lt;br /&gt;
O Git é um sistema de controle de versão distribuído. É um sistema que registra alterações em arquivos e mantém essas alterações em um arquivo de histórico. Você pode sempre olhar para trás para uma versão anterior do seu código e restaurar as alterações, se quiser. Devido ao histórico do arquivo, o Git é muito útil quando você trabalha com muitas pessoas juntas no mesmo projeto.&lt;br /&gt;
&lt;br /&gt;
Aqui está como o GitHub pode ser usado. [https://www.github.com GitHub] é um site que ajuda a gerenciar Projetos Git de forma visual. Como proprietário de um projeto, você pode alterar o código e comparar diferentes versões. Como usuário do projeto, você pode contribuir fazendo uma Requisição Pull. Uma Requisição Pull é uma solicitação para o proprietário puxar algum código para o projeto. Você está oferecendo um pedaço de código (talvez uma solução para um bug) e perguntando se o proprietário do projeto gostaria de usá-lo. Se o proprietário gostar, ele pode fundir (adicionar) ao seu projeto.&lt;br /&gt;
&lt;br /&gt;
Joomla! usa GitHub e Git para manter seu código. Todos podem contribuir com o software Joomla!. A URL para o projeto Joomla! CMS no GitHub é: https://github.com/joomla/joomla-cms&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Começando! =&lt;br /&gt;
== Cadastrar-se no GitHub e instalar o Git ==&lt;br /&gt;
Primeiro, você vai precisar se registrar no [http://www.github.com GitHub]. Isto é grátis e fácil de se fazer. Basta seguir os passos fornecidos.&lt;br /&gt;
&lt;br /&gt;
One we are signed up, we need to install Git. The latest version of Git can be found on http://git-scm.com. Download and open the installer. Git is an CLI (Command Line Interface) program. At the start this can be confusing and a bit scary but this document will lead you through the process.&lt;br /&gt;
&lt;br /&gt;
If you&#039;re not an advanced user, just run the installer and press the &amp;quot;next&amp;quot; buttons until the program is installed. Git won&#039;t damage your system. Later you can remove it just like any other program if you like.&lt;br /&gt;
&lt;br /&gt;
Once we installed Git, we open the program called &amp;quot;Git Bash.&amp;quot; A command line will be opened. We&#039;re going to tell Git our name and email address. Git will use this information when we contribute to a project.&lt;br /&gt;
With the following commands we give Git that information:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git config --global user.name &amp;quot;Your name&amp;quot;&lt;br /&gt;
git config --global user.email youremail@mail.com&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the above commands, and all other commands given in this documentation, each line is a new command. So you type the fist line, press enter and then type the second line and press enter.&lt;br /&gt;
&lt;br /&gt;
We are now ready to use Git and go farther with setting up our test installation.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Setting up a test installation=&lt;br /&gt;
For our test installation we need a Web server program so that we can install and run Joomla! on our computer. There are a lot of programs that can do that such as [https://www.mamp.info/ MAMP] and [https://www.apachefriends.org/ XAMPP]. Download an install one of them.&lt;br /&gt;
&lt;br /&gt;
After the installation of such a program (I use MAMP in this documentation), we going to install the latest version of Joomla!. In our case, the latest version of Joomla! is not the last stable release. The last version of Joomla! is the staging branch on GitHub.&lt;br /&gt;
First, let me explain a little bit more about GitHub.&lt;br /&gt;
&lt;br /&gt;
== Fork and Clone Joomla! ==&lt;br /&gt;
On GitHub you can find projects, so called Repositories. Inside a project you might find several versions. Such a version is called a Branch. Joomla! has the following branches:&lt;br /&gt;
* &#039;&#039;&#039;Staging:&#039;&#039;&#039; This branch contains the latest bug fixes and new features of Joomla!&lt;br /&gt;
* &#039;&#039;&#039;Master:&#039;&#039;&#039; This branch is the current stable version of Joomla!&lt;br /&gt;
* &#039;&#039;&#039;3.5-dev&#039;&#039;&#039; This branch contains the files for Joomla! 3.5, which is not stable at this writing.&lt;br /&gt;
&lt;br /&gt;
On our test location we going to use the &#039;&#039;&#039;Staging&#039;&#039;&#039; branch but if we should use this branch directly we have problem. We cannot modify this branch because we are not the owner of it.&lt;br /&gt;
We are going to make a copy of it. On GitHub this is called a Fork. We are the owner of that copy so we can modify it. After modifying we compare our fork with the original project. Then we can make a Pull Request for the changes we&#039;ve made. More about that later.&lt;br /&gt;
You can Fork a branch by pressing the Fork button on the [https://github.com/joomla/joomla-cms Joomla! CMS Github Repository]. This button is located at the right top of the page.&lt;br /&gt;
[[File:Github-fork-button.png|none]]&lt;br /&gt;
&lt;br /&gt;
After forking, we are going to install Joomla! on our local Web server. Go to the folder were you can run files on you Web server. Most of the program use a folder called &amp;lt;tt&amp;gt;htdocs&amp;lt;/tt&amp;gt;. Once we are inside that folder, press the right mouse button an click on: &amp;quot;Git Bash Here&amp;quot;. The command line will open for this location.&lt;br /&gt;
&lt;br /&gt;
Type the following command to download the files from your Fork of the Joomla! CMS to your computer. Please replace &amp;lt;i&amp;gt;username&amp;lt;/i&amp;gt; with the username you are using on GitHub.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git clone https://github.com/username/joomla-cms.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For all commands given in this documentation, you have to open Git via the above described steps. Please remember that for other commands in this documentation. &lt;br /&gt;
&lt;br /&gt;
Once Git is ready, open your browser and go to the installation on your localhost. Usually the URL is something like: &amp;lt;tt&amp;gt;http://localhost/joomla-cms&amp;lt;/tt&amp;gt;. You will now see the default Joomla! installation process. &lt;br /&gt;
&lt;br /&gt;
== Install Joomla! ==&lt;br /&gt;
The installation of Joomla! for our local test installation is almost the same as a regular installation. There are a two little differences.&lt;br /&gt;
&lt;br /&gt;
For the database settings, the password and username are default. Most often the username is &amp;lt;tt&amp;gt;root&amp;lt;/tt&amp;gt; and the password is also &amp;lt;tt&amp;gt;root&amp;lt;/tt&amp;gt; or there is no password. If you still can&#039;t connect to the database, look in the manual for your local Web server for the username and password.&lt;br /&gt;
&lt;br /&gt;
The last difference is the final step of the installation. Normally we must delete the installation folder to go further to the back-end or front-end of Joomla!. For a test installation we can skip this part and go directly to the back-end or front-end. Don&#039;t remove the installation folder. It can be very useful when we have to install Joomla again.&lt;br /&gt;
&lt;br /&gt;
=Make Your Changes=&lt;br /&gt;
Now it is time to made our file changes to Joomla!. All changes we make will be registered and monitored by Git. At any moment you can type the command &amp;lt;tt&amp;gt;git status&amp;lt;/tt&amp;gt; to see which files are modified or untracked. Untracked means that the file at that location is new for Git.&lt;br /&gt;
&lt;br /&gt;
If you made a mistake or you would like to restore a file, use this command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git checkout path/to/file&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you like to remove all changes you made, use the following commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git checkout .&lt;br /&gt;
git clean -f -d&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The first command resets all files. The second command removes untracked files and folders.&lt;br /&gt;
&lt;br /&gt;
==Publish Our Changes on GitHub==&lt;br /&gt;
&lt;br /&gt;
=Push the Change to the Fork=&lt;br /&gt;
After making our changes, we have to upload our changes to our repository on GitHub. After that, we can make a pull request with our changes.&lt;br /&gt;
&lt;br /&gt;
Uploading changes is called &amp;lt;tt&amp;gt;push&amp;lt;/tt&amp;gt; in Git terms. Before we can do that, we have to do something very important. We must create a new branch for our changes. (A branch is a version of our project, remember?) If we don&#039;t do that and made our change directly to the staging branch, the first time there won&#039;t be a problem. But if we made changes for the second time, and the change we made the first time are not merged yet, all these changes will registered too as new changes.&lt;br /&gt;
&lt;br /&gt;
So the first command we are going to run will create a new branch. It will prevent the above described problem.&lt;br /&gt;
Replace name-new-branch with the name of the new branch. This name must be short, and can only contain lower case letters and numbers. Do &#039;&#039;&#039;NOT&#039;&#039;&#039; use spaces. Instead of spaces, use - (minus).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git checkout -b name-new-branch&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The next command tells git that all made changes are good, and are ready to commit.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git add --all&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The following command adds our change to the branch. Please replace the message with a short description of your changes. This description will be the title of the pull request we are going to make.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git commit -m &amp;quot;description&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The final command will push (upload) the changes to our fork. Please replace name-new-branch with the name of the branch you made a few steps above.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git push origin name-new-branch&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Compare Forks and Make a Pull Request==&lt;br /&gt;
After pushing our change to GitHub, go to your fork of the Joomla! CMS.&lt;br /&gt;
&lt;br /&gt;
=Extra information=&lt;br /&gt;
Because the staging version of Joomla! can change any moment, it is very useful to have the possibility for keeping our fork up-to-date. We can do that by adding a remote to our forked project:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git remote add upstream https://github.com/joomla/joomla-cms.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We now added a remote called &amp;quot;upstream&amp;quot;. With the following command, Git will search for new contribution (commits) in the staging branch we don&#039;t have in our fork. If it found some, it will add them to our fork:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git pull upstream staging&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The changes are now only made on our local fork. To upload them to GitHub use the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git push&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category: Bug Squad]]&lt;br /&gt;
[[Category: Development]]&lt;br /&gt;
[[Category:GitHub]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Juliano.freitas</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Translations:Working_with_git_and_github/9/pt-br&amp;diff=404079</id>
		<title>Translations:Working with git and github/9/pt-br</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Translations:Working_with_git_and_github/9/pt-br&amp;diff=404079"/>
		<updated>2017-05-14T03:04:55Z</updated>

		<summary type="html">&lt;p&gt;Juliano.freitas: Created page with &amp;quot;Primeiro, você vai precisar se registrar no [http://www.github.com GitHub]. Isto é grátis e fácil de se fazer. Basta seguir os passos fornecidos.&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Primeiro, você vai precisar se registrar no [http://www.github.com GitHub]. Isto é grátis e fácil de se fazer. Basta seguir os passos fornecidos.&lt;/div&gt;</summary>
		<author><name>Juliano.freitas</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Working_with_git_and_github/pt-br&amp;diff=404078</id>
		<title>Working with git and github/pt-br</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Working_with_git_and_github/pt-br&amp;diff=404078"/>
		<updated>2017-05-14T03:03:43Z</updated>

		<summary type="html">&lt;p&gt;Juliano.freitas: Created page with &amp;quot;== Cadastrar-se no GitHub e instalar o Git ==&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&amp;lt;languages /&amp;gt;&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Introdução =&lt;br /&gt;
Este documento irá fornecer informações sobre como contribuir para o CMD Joomla! com a ajuda do Git e GitHub. Se você gosta de fazer uma alteração simples (um arquivo apenas), é mais fácil usar esta documentação: [[S:MyLanguage/Using the Github UI to Make Pull Requests|Usando a interface do Github para Fazer Requisições Pull]]&lt;br /&gt;
Se você gosta de adicionar mudanças mais complexas ou está apenas interessado nisso, continue lendo!&lt;br /&gt;
&lt;br /&gt;
== O que são Git e GitHub? ==&lt;br /&gt;
&lt;br /&gt;
O Git é um sistema de controle de versão distribuído. É um sistema que registra alterações em arquivos e mantém essas alterações em um arquivo de histórico. Você pode sempre olhar para trás para uma versão anterior do seu código e restaurar as alterações, se quiser. Devido ao histórico do arquivo, o Git é muito útil quando você trabalha com muitas pessoas juntas no mesmo projeto.&lt;br /&gt;
&lt;br /&gt;
Aqui está como o GitHub pode ser usado. [https://www.github.com GitHub] é um site que ajuda a gerenciar Projetos Git de forma visual. Como proprietário de um projeto, você pode alterar o código e comparar diferentes versões. Como usuário do projeto, você pode contribuir fazendo uma Requisição Pull. Uma Requisição Pull é uma solicitação para o proprietário puxar algum código para o projeto. Você está oferecendo um pedaço de código (talvez uma solução para um bug) e perguntando se o proprietário do projeto gostaria de usá-lo. Se o proprietário gostar, ele pode fundir (adicionar) ao seu projeto.&lt;br /&gt;
&lt;br /&gt;
Joomla! usa GitHub e Git para manter seu código. Todos podem contribuir com o software Joomla!. A URL para o projeto Joomla! CMS no GitHub é: https://github.com/joomla/joomla-cms&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Começando! =&lt;br /&gt;
== Cadastrar-se no GitHub e instalar o Git ==&lt;br /&gt;
First, you will need to register at [http://www.github.com GitHub]. It&#039;s free and easy to do. Just follow the provided steps.&lt;br /&gt;
&lt;br /&gt;
One we are signed up, we need to install Git. The latest version of Git can be found on http://git-scm.com. Download and open the installer. Git is an CLI (Command Line Interface) program. At the start this can be confusing and a bit scary but this document will lead you through the process.&lt;br /&gt;
&lt;br /&gt;
If you&#039;re not an advanced user, just run the installer and press the &amp;quot;next&amp;quot; buttons until the program is installed. Git won&#039;t damage your system. Later you can remove it just like any other program if you like.&lt;br /&gt;
&lt;br /&gt;
Once we installed Git, we open the program called &amp;quot;Git Bash.&amp;quot; A command line will be opened. We&#039;re going to tell Git our name and email address. Git will use this information when we contribute to a project.&lt;br /&gt;
With the following commands we give Git that information:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git config --global user.name &amp;quot;Your name&amp;quot;&lt;br /&gt;
git config --global user.email youremail@mail.com&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the above commands, and all other commands given in this documentation, each line is a new command. So you type the fist line, press enter and then type the second line and press enter.&lt;br /&gt;
&lt;br /&gt;
We are now ready to use Git and go farther with setting up our test installation.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Setting up a test installation=&lt;br /&gt;
For our test installation we need a Web server program so that we can install and run Joomla! on our computer. There are a lot of programs that can do that such as [https://www.mamp.info/ MAMP] and [https://www.apachefriends.org/ XAMPP]. Download an install one of them.&lt;br /&gt;
&lt;br /&gt;
After the installation of such a program (I use MAMP in this documentation), we going to install the latest version of Joomla!. In our case, the latest version of Joomla! is not the last stable release. The last version of Joomla! is the staging branch on GitHub.&lt;br /&gt;
First, let me explain a little bit more about GitHub.&lt;br /&gt;
&lt;br /&gt;
== Fork and Clone Joomla! ==&lt;br /&gt;
On GitHub you can find projects, so called Repositories. Inside a project you might find several versions. Such a version is called a Branch. Joomla! has the following branches:&lt;br /&gt;
* &#039;&#039;&#039;Staging:&#039;&#039;&#039; This branch contains the latest bug fixes and new features of Joomla!&lt;br /&gt;
* &#039;&#039;&#039;Master:&#039;&#039;&#039; This branch is the current stable version of Joomla!&lt;br /&gt;
* &#039;&#039;&#039;3.5-dev&#039;&#039;&#039; This branch contains the files for Joomla! 3.5, which is not stable at this writing.&lt;br /&gt;
&lt;br /&gt;
On our test location we going to use the &#039;&#039;&#039;Staging&#039;&#039;&#039; branch but if we should use this branch directly we have problem. We cannot modify this branch because we are not the owner of it.&lt;br /&gt;
We are going to make a copy of it. On GitHub this is called a Fork. We are the owner of that copy so we can modify it. After modifying we compare our fork with the original project. Then we can make a Pull Request for the changes we&#039;ve made. More about that later.&lt;br /&gt;
You can Fork a branch by pressing the Fork button on the [https://github.com/joomla/joomla-cms Joomla! CMS Github Repository]. This button is located at the right top of the page.&lt;br /&gt;
[[File:Github-fork-button.png|none]]&lt;br /&gt;
&lt;br /&gt;
After forking, we are going to install Joomla! on our local Web server. Go to the folder were you can run files on you Web server. Most of the program use a folder called &amp;lt;tt&amp;gt;htdocs&amp;lt;/tt&amp;gt;. Once we are inside that folder, press the right mouse button an click on: &amp;quot;Git Bash Here&amp;quot;. The command line will open for this location.&lt;br /&gt;
&lt;br /&gt;
Type the following command to download the files from your Fork of the Joomla! CMS to your computer. Please replace &amp;lt;i&amp;gt;username&amp;lt;/i&amp;gt; with the username you are using on GitHub.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git clone https://github.com/username/joomla-cms.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For all commands given in this documentation, you have to open Git via the above described steps. Please remember that for other commands in this documentation. &lt;br /&gt;
&lt;br /&gt;
Once Git is ready, open your browser and go to the installation on your localhost. Usually the URL is something like: &amp;lt;tt&amp;gt;http://localhost/joomla-cms&amp;lt;/tt&amp;gt;. You will now see the default Joomla! installation process. &lt;br /&gt;
&lt;br /&gt;
== Install Joomla! ==&lt;br /&gt;
The installation of Joomla! for our local test installation is almost the same as a regular installation. There are a two little differences.&lt;br /&gt;
&lt;br /&gt;
For the database settings, the password and username are default. Most often the username is &amp;lt;tt&amp;gt;root&amp;lt;/tt&amp;gt; and the password is also &amp;lt;tt&amp;gt;root&amp;lt;/tt&amp;gt; or there is no password. If you still can&#039;t connect to the database, look in the manual for your local Web server for the username and password.&lt;br /&gt;
&lt;br /&gt;
The last difference is the final step of the installation. Normally we must delete the installation folder to go further to the back-end or front-end of Joomla!. For a test installation we can skip this part and go directly to the back-end or front-end. Don&#039;t remove the installation folder. It can be very useful when we have to install Joomla again.&lt;br /&gt;
&lt;br /&gt;
=Make Your Changes=&lt;br /&gt;
Now it is time to made our file changes to Joomla!. All changes we make will be registered and monitored by Git. At any moment you can type the command &amp;lt;tt&amp;gt;git status&amp;lt;/tt&amp;gt; to see which files are modified or untracked. Untracked means that the file at that location is new for Git.&lt;br /&gt;
&lt;br /&gt;
If you made a mistake or you would like to restore a file, use this command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git checkout path/to/file&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you like to remove all changes you made, use the following commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git checkout .&lt;br /&gt;
git clean -f -d&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The first command resets all files. The second command removes untracked files and folders.&lt;br /&gt;
&lt;br /&gt;
==Publish Our Changes on GitHub==&lt;br /&gt;
&lt;br /&gt;
=Push the Change to the Fork=&lt;br /&gt;
After making our changes, we have to upload our changes to our repository on GitHub. After that, we can make a pull request with our changes.&lt;br /&gt;
&lt;br /&gt;
Uploading changes is called &amp;lt;tt&amp;gt;push&amp;lt;/tt&amp;gt; in Git terms. Before we can do that, we have to do something very important. We must create a new branch for our changes. (A branch is a version of our project, remember?) If we don&#039;t do that and made our change directly to the staging branch, the first time there won&#039;t be a problem. But if we made changes for the second time, and the change we made the first time are not merged yet, all these changes will registered too as new changes.&lt;br /&gt;
&lt;br /&gt;
So the first command we are going to run will create a new branch. It will prevent the above described problem.&lt;br /&gt;
Replace name-new-branch with the name of the new branch. This name must be short, and can only contain lower case letters and numbers. Do &#039;&#039;&#039;NOT&#039;&#039;&#039; use spaces. Instead of spaces, use - (minus).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git checkout -b name-new-branch&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The next command tells git that all made changes are good, and are ready to commit.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git add --all&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The following command adds our change to the branch. Please replace the message with a short description of your changes. This description will be the title of the pull request we are going to make.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git commit -m &amp;quot;description&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The final command will push (upload) the changes to our fork. Please replace name-new-branch with the name of the branch you made a few steps above.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git push origin name-new-branch&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Compare Forks and Make a Pull Request==&lt;br /&gt;
After pushing our change to GitHub, go to your fork of the Joomla! CMS.&lt;br /&gt;
&lt;br /&gt;
=Extra information=&lt;br /&gt;
Because the staging version of Joomla! can change any moment, it is very useful to have the possibility for keeping our fork up-to-date. We can do that by adding a remote to our forked project:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git remote add upstream https://github.com/joomla/joomla-cms.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We now added a remote called &amp;quot;upstream&amp;quot;. With the following command, Git will search for new contribution (commits) in the staging branch we don&#039;t have in our fork. If it found some, it will add them to our fork:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git pull upstream staging&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The changes are now only made on our local fork. To upload them to GitHub use the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git push&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category: Bug Squad]]&lt;br /&gt;
[[Category: Development]]&lt;br /&gt;
[[Category:GitHub]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Juliano.freitas</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Translations:Working_with_git_and_github/8/pt-br&amp;diff=404077</id>
		<title>Translations:Working with git and github/8/pt-br</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Translations:Working_with_git_and_github/8/pt-br&amp;diff=404077"/>
		<updated>2017-05-14T03:03:43Z</updated>

		<summary type="html">&lt;p&gt;Juliano.freitas: Created page with &amp;quot;== Cadastrar-se no GitHub e instalar o Git ==&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Cadastrar-se no GitHub e instalar o Git ==&lt;/div&gt;</summary>
		<author><name>Juliano.freitas</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Working_with_git_and_github/pt-br&amp;diff=404076</id>
		<title>Working with git and github/pt-br</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Working_with_git_and_github/pt-br&amp;diff=404076"/>
		<updated>2017-05-14T03:02:47Z</updated>

		<summary type="html">&lt;p&gt;Juliano.freitas: Created page with &amp;quot;= Começando! =&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&amp;lt;languages /&amp;gt;&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Introdução =&lt;br /&gt;
Este documento irá fornecer informações sobre como contribuir para o CMD Joomla! com a ajuda do Git e GitHub. Se você gosta de fazer uma alteração simples (um arquivo apenas), é mais fácil usar esta documentação: [[S:MyLanguage/Using the Github UI to Make Pull Requests|Usando a interface do Github para Fazer Requisições Pull]]&lt;br /&gt;
Se você gosta de adicionar mudanças mais complexas ou está apenas interessado nisso, continue lendo!&lt;br /&gt;
&lt;br /&gt;
== O que são Git e GitHub? ==&lt;br /&gt;
&lt;br /&gt;
O Git é um sistema de controle de versão distribuído. É um sistema que registra alterações em arquivos e mantém essas alterações em um arquivo de histórico. Você pode sempre olhar para trás para uma versão anterior do seu código e restaurar as alterações, se quiser. Devido ao histórico do arquivo, o Git é muito útil quando você trabalha com muitas pessoas juntas no mesmo projeto.&lt;br /&gt;
&lt;br /&gt;
Aqui está como o GitHub pode ser usado. [https://www.github.com GitHub] é um site que ajuda a gerenciar Projetos Git de forma visual. Como proprietário de um projeto, você pode alterar o código e comparar diferentes versões. Como usuário do projeto, você pode contribuir fazendo uma Requisição Pull. Uma Requisição Pull é uma solicitação para o proprietário puxar algum código para o projeto. Você está oferecendo um pedaço de código (talvez uma solução para um bug) e perguntando se o proprietário do projeto gostaria de usá-lo. Se o proprietário gostar, ele pode fundir (adicionar) ao seu projeto.&lt;br /&gt;
&lt;br /&gt;
Joomla! usa GitHub e Git para manter seu código. Todos podem contribuir com o software Joomla!. A URL para o projeto Joomla! CMS no GitHub é: https://github.com/joomla/joomla-cms&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Começando! =&lt;br /&gt;
== Sign up on GitHub and install Git ==&lt;br /&gt;
First, you will need to register at [http://www.github.com GitHub]. It&#039;s free and easy to do. Just follow the provided steps.&lt;br /&gt;
&lt;br /&gt;
One we are signed up, we need to install Git. The latest version of Git can be found on http://git-scm.com. Download and open the installer. Git is an CLI (Command Line Interface) program. At the start this can be confusing and a bit scary but this document will lead you through the process.&lt;br /&gt;
&lt;br /&gt;
If you&#039;re not an advanced user, just run the installer and press the &amp;quot;next&amp;quot; buttons until the program is installed. Git won&#039;t damage your system. Later you can remove it just like any other program if you like.&lt;br /&gt;
&lt;br /&gt;
Once we installed Git, we open the program called &amp;quot;Git Bash.&amp;quot; A command line will be opened. We&#039;re going to tell Git our name and email address. Git will use this information when we contribute to a project.&lt;br /&gt;
With the following commands we give Git that information:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git config --global user.name &amp;quot;Your name&amp;quot;&lt;br /&gt;
git config --global user.email youremail@mail.com&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the above commands, and all other commands given in this documentation, each line is a new command. So you type the fist line, press enter and then type the second line and press enter.&lt;br /&gt;
&lt;br /&gt;
We are now ready to use Git and go farther with setting up our test installation.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Setting up a test installation=&lt;br /&gt;
For our test installation we need a Web server program so that we can install and run Joomla! on our computer. There are a lot of programs that can do that such as [https://www.mamp.info/ MAMP] and [https://www.apachefriends.org/ XAMPP]. Download an install one of them.&lt;br /&gt;
&lt;br /&gt;
After the installation of such a program (I use MAMP in this documentation), we going to install the latest version of Joomla!. In our case, the latest version of Joomla! is not the last stable release. The last version of Joomla! is the staging branch on GitHub.&lt;br /&gt;
First, let me explain a little bit more about GitHub.&lt;br /&gt;
&lt;br /&gt;
== Fork and Clone Joomla! ==&lt;br /&gt;
On GitHub you can find projects, so called Repositories. Inside a project you might find several versions. Such a version is called a Branch. Joomla! has the following branches:&lt;br /&gt;
* &#039;&#039;&#039;Staging:&#039;&#039;&#039; This branch contains the latest bug fixes and new features of Joomla!&lt;br /&gt;
* &#039;&#039;&#039;Master:&#039;&#039;&#039; This branch is the current stable version of Joomla!&lt;br /&gt;
* &#039;&#039;&#039;3.5-dev&#039;&#039;&#039; This branch contains the files for Joomla! 3.5, which is not stable at this writing.&lt;br /&gt;
&lt;br /&gt;
On our test location we going to use the &#039;&#039;&#039;Staging&#039;&#039;&#039; branch but if we should use this branch directly we have problem. We cannot modify this branch because we are not the owner of it.&lt;br /&gt;
We are going to make a copy of it. On GitHub this is called a Fork. We are the owner of that copy so we can modify it. After modifying we compare our fork with the original project. Then we can make a Pull Request for the changes we&#039;ve made. More about that later.&lt;br /&gt;
You can Fork a branch by pressing the Fork button on the [https://github.com/joomla/joomla-cms Joomla! CMS Github Repository]. This button is located at the right top of the page.&lt;br /&gt;
[[File:Github-fork-button.png|none]]&lt;br /&gt;
&lt;br /&gt;
After forking, we are going to install Joomla! on our local Web server. Go to the folder were you can run files on you Web server. Most of the program use a folder called &amp;lt;tt&amp;gt;htdocs&amp;lt;/tt&amp;gt;. Once we are inside that folder, press the right mouse button an click on: &amp;quot;Git Bash Here&amp;quot;. The command line will open for this location.&lt;br /&gt;
&lt;br /&gt;
Type the following command to download the files from your Fork of the Joomla! CMS to your computer. Please replace &amp;lt;i&amp;gt;username&amp;lt;/i&amp;gt; with the username you are using on GitHub.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git clone https://github.com/username/joomla-cms.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For all commands given in this documentation, you have to open Git via the above described steps. Please remember that for other commands in this documentation. &lt;br /&gt;
&lt;br /&gt;
Once Git is ready, open your browser and go to the installation on your localhost. Usually the URL is something like: &amp;lt;tt&amp;gt;http://localhost/joomla-cms&amp;lt;/tt&amp;gt;. You will now see the default Joomla! installation process. &lt;br /&gt;
&lt;br /&gt;
== Install Joomla! ==&lt;br /&gt;
The installation of Joomla! for our local test installation is almost the same as a regular installation. There are a two little differences.&lt;br /&gt;
&lt;br /&gt;
For the database settings, the password and username are default. Most often the username is &amp;lt;tt&amp;gt;root&amp;lt;/tt&amp;gt; and the password is also &amp;lt;tt&amp;gt;root&amp;lt;/tt&amp;gt; or there is no password. If you still can&#039;t connect to the database, look in the manual for your local Web server for the username and password.&lt;br /&gt;
&lt;br /&gt;
The last difference is the final step of the installation. Normally we must delete the installation folder to go further to the back-end or front-end of Joomla!. For a test installation we can skip this part and go directly to the back-end or front-end. Don&#039;t remove the installation folder. It can be very useful when we have to install Joomla again.&lt;br /&gt;
&lt;br /&gt;
=Make Your Changes=&lt;br /&gt;
Now it is time to made our file changes to Joomla!. All changes we make will be registered and monitored by Git. At any moment you can type the command &amp;lt;tt&amp;gt;git status&amp;lt;/tt&amp;gt; to see which files are modified or untracked. Untracked means that the file at that location is new for Git.&lt;br /&gt;
&lt;br /&gt;
If you made a mistake or you would like to restore a file, use this command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git checkout path/to/file&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you like to remove all changes you made, use the following commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git checkout .&lt;br /&gt;
git clean -f -d&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The first command resets all files. The second command removes untracked files and folders.&lt;br /&gt;
&lt;br /&gt;
==Publish Our Changes on GitHub==&lt;br /&gt;
&lt;br /&gt;
=Push the Change to the Fork=&lt;br /&gt;
After making our changes, we have to upload our changes to our repository on GitHub. After that, we can make a pull request with our changes.&lt;br /&gt;
&lt;br /&gt;
Uploading changes is called &amp;lt;tt&amp;gt;push&amp;lt;/tt&amp;gt; in Git terms. Before we can do that, we have to do something very important. We must create a new branch for our changes. (A branch is a version of our project, remember?) If we don&#039;t do that and made our change directly to the staging branch, the first time there won&#039;t be a problem. But if we made changes for the second time, and the change we made the first time are not merged yet, all these changes will registered too as new changes.&lt;br /&gt;
&lt;br /&gt;
So the first command we are going to run will create a new branch. It will prevent the above described problem.&lt;br /&gt;
Replace name-new-branch with the name of the new branch. This name must be short, and can only contain lower case letters and numbers. Do &#039;&#039;&#039;NOT&#039;&#039;&#039; use spaces. Instead of spaces, use - (minus).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git checkout -b name-new-branch&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The next command tells git that all made changes are good, and are ready to commit.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git add --all&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The following command adds our change to the branch. Please replace the message with a short description of your changes. This description will be the title of the pull request we are going to make.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git commit -m &amp;quot;description&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The final command will push (upload) the changes to our fork. Please replace name-new-branch with the name of the branch you made a few steps above.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git push origin name-new-branch&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Compare Forks and Make a Pull Request==&lt;br /&gt;
After pushing our change to GitHub, go to your fork of the Joomla! CMS.&lt;br /&gt;
&lt;br /&gt;
=Extra information=&lt;br /&gt;
Because the staging version of Joomla! can change any moment, it is very useful to have the possibility for keeping our fork up-to-date. We can do that by adding a remote to our forked project:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git remote add upstream https://github.com/joomla/joomla-cms.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We now added a remote called &amp;quot;upstream&amp;quot;. With the following command, Git will search for new contribution (commits) in the staging branch we don&#039;t have in our fork. If it found some, it will add them to our fork:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git pull upstream staging&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The changes are now only made on our local fork. To upload them to GitHub use the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git push&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category: Bug Squad]]&lt;br /&gt;
[[Category: Development]]&lt;br /&gt;
[[Category:GitHub]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Juliano.freitas</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Translations:Working_with_git_and_github/7/pt-br&amp;diff=404075</id>
		<title>Translations:Working with git and github/7/pt-br</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Translations:Working_with_git_and_github/7/pt-br&amp;diff=404075"/>
		<updated>2017-05-14T03:02:47Z</updated>

		<summary type="html">&lt;p&gt;Juliano.freitas: Created page with &amp;quot;= Começando! =&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Começando! =&lt;/div&gt;</summary>
		<author><name>Juliano.freitas</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Working_with_git_and_github/pt-br&amp;diff=404074</id>
		<title>Working with git and github/pt-br</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Working_with_git_and_github/pt-br&amp;diff=404074"/>
		<updated>2017-05-14T03:02:33Z</updated>

		<summary type="html">&lt;p&gt;Juliano.freitas: Created page with &amp;quot;Joomla! usa GitHub e Git para manter seu código. Todos podem contribuir com o software Joomla!. A URL para o projeto Joomla! CMS no GitHub é: https://github.com/joomla/jooml...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&amp;lt;languages /&amp;gt;&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Introdução =&lt;br /&gt;
Este documento irá fornecer informações sobre como contribuir para o CMD Joomla! com a ajuda do Git e GitHub. Se você gosta de fazer uma alteração simples (um arquivo apenas), é mais fácil usar esta documentação: [[S:MyLanguage/Using the Github UI to Make Pull Requests|Usando a interface do Github para Fazer Requisições Pull]]&lt;br /&gt;
Se você gosta de adicionar mudanças mais complexas ou está apenas interessado nisso, continue lendo!&lt;br /&gt;
&lt;br /&gt;
== O que são Git e GitHub? ==&lt;br /&gt;
&lt;br /&gt;
O Git é um sistema de controle de versão distribuído. É um sistema que registra alterações em arquivos e mantém essas alterações em um arquivo de histórico. Você pode sempre olhar para trás para uma versão anterior do seu código e restaurar as alterações, se quiser. Devido ao histórico do arquivo, o Git é muito útil quando você trabalha com muitas pessoas juntas no mesmo projeto.&lt;br /&gt;
&lt;br /&gt;
Aqui está como o GitHub pode ser usado. [https://www.github.com GitHub] é um site que ajuda a gerenciar Projetos Git de forma visual. Como proprietário de um projeto, você pode alterar o código e comparar diferentes versões. Como usuário do projeto, você pode contribuir fazendo uma Requisição Pull. Uma Requisição Pull é uma solicitação para o proprietário puxar algum código para o projeto. Você está oferecendo um pedaço de código (talvez uma solução para um bug) e perguntando se o proprietário do projeto gostaria de usá-lo. Se o proprietário gostar, ele pode fundir (adicionar) ao seu projeto.&lt;br /&gt;
&lt;br /&gt;
Joomla! usa GitHub e Git para manter seu código. Todos podem contribuir com o software Joomla!. A URL para o projeto Joomla! CMS no GitHub é: https://github.com/joomla/joomla-cms&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Getting Started =&lt;br /&gt;
== Sign up on GitHub and install Git ==&lt;br /&gt;
First, you will need to register at [http://www.github.com GitHub]. It&#039;s free and easy to do. Just follow the provided steps.&lt;br /&gt;
&lt;br /&gt;
One we are signed up, we need to install Git. The latest version of Git can be found on http://git-scm.com. Download and open the installer. Git is an CLI (Command Line Interface) program. At the start this can be confusing and a bit scary but this document will lead you through the process.&lt;br /&gt;
&lt;br /&gt;
If you&#039;re not an advanced user, just run the installer and press the &amp;quot;next&amp;quot; buttons until the program is installed. Git won&#039;t damage your system. Later you can remove it just like any other program if you like.&lt;br /&gt;
&lt;br /&gt;
Once we installed Git, we open the program called &amp;quot;Git Bash.&amp;quot; A command line will be opened. We&#039;re going to tell Git our name and email address. Git will use this information when we contribute to a project.&lt;br /&gt;
With the following commands we give Git that information:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git config --global user.name &amp;quot;Your name&amp;quot;&lt;br /&gt;
git config --global user.email youremail@mail.com&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the above commands, and all other commands given in this documentation, each line is a new command. So you type the fist line, press enter and then type the second line and press enter.&lt;br /&gt;
&lt;br /&gt;
We are now ready to use Git and go farther with setting up our test installation.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Setting up a test installation=&lt;br /&gt;
For our test installation we need a Web server program so that we can install and run Joomla! on our computer. There are a lot of programs that can do that such as [https://www.mamp.info/ MAMP] and [https://www.apachefriends.org/ XAMPP]. Download an install one of them.&lt;br /&gt;
&lt;br /&gt;
After the installation of such a program (I use MAMP in this documentation), we going to install the latest version of Joomla!. In our case, the latest version of Joomla! is not the last stable release. The last version of Joomla! is the staging branch on GitHub.&lt;br /&gt;
First, let me explain a little bit more about GitHub.&lt;br /&gt;
&lt;br /&gt;
== Fork and Clone Joomla! ==&lt;br /&gt;
On GitHub you can find projects, so called Repositories. Inside a project you might find several versions. Such a version is called a Branch. Joomla! has the following branches:&lt;br /&gt;
* &#039;&#039;&#039;Staging:&#039;&#039;&#039; This branch contains the latest bug fixes and new features of Joomla!&lt;br /&gt;
* &#039;&#039;&#039;Master:&#039;&#039;&#039; This branch is the current stable version of Joomla!&lt;br /&gt;
* &#039;&#039;&#039;3.5-dev&#039;&#039;&#039; This branch contains the files for Joomla! 3.5, which is not stable at this writing.&lt;br /&gt;
&lt;br /&gt;
On our test location we going to use the &#039;&#039;&#039;Staging&#039;&#039;&#039; branch but if we should use this branch directly we have problem. We cannot modify this branch because we are not the owner of it.&lt;br /&gt;
We are going to make a copy of it. On GitHub this is called a Fork. We are the owner of that copy so we can modify it. After modifying we compare our fork with the original project. Then we can make a Pull Request for the changes we&#039;ve made. More about that later.&lt;br /&gt;
You can Fork a branch by pressing the Fork button on the [https://github.com/joomla/joomla-cms Joomla! CMS Github Repository]. This button is located at the right top of the page.&lt;br /&gt;
[[File:Github-fork-button.png|none]]&lt;br /&gt;
&lt;br /&gt;
After forking, we are going to install Joomla! on our local Web server. Go to the folder were you can run files on you Web server. Most of the program use a folder called &amp;lt;tt&amp;gt;htdocs&amp;lt;/tt&amp;gt;. Once we are inside that folder, press the right mouse button an click on: &amp;quot;Git Bash Here&amp;quot;. The command line will open for this location.&lt;br /&gt;
&lt;br /&gt;
Type the following command to download the files from your Fork of the Joomla! CMS to your computer. Please replace &amp;lt;i&amp;gt;username&amp;lt;/i&amp;gt; with the username you are using on GitHub.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git clone https://github.com/username/joomla-cms.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For all commands given in this documentation, you have to open Git via the above described steps. Please remember that for other commands in this documentation. &lt;br /&gt;
&lt;br /&gt;
Once Git is ready, open your browser and go to the installation on your localhost. Usually the URL is something like: &amp;lt;tt&amp;gt;http://localhost/joomla-cms&amp;lt;/tt&amp;gt;. You will now see the default Joomla! installation process. &lt;br /&gt;
&lt;br /&gt;
== Install Joomla! ==&lt;br /&gt;
The installation of Joomla! for our local test installation is almost the same as a regular installation. There are a two little differences.&lt;br /&gt;
&lt;br /&gt;
For the database settings, the password and username are default. Most often the username is &amp;lt;tt&amp;gt;root&amp;lt;/tt&amp;gt; and the password is also &amp;lt;tt&amp;gt;root&amp;lt;/tt&amp;gt; or there is no password. If you still can&#039;t connect to the database, look in the manual for your local Web server for the username and password.&lt;br /&gt;
&lt;br /&gt;
The last difference is the final step of the installation. Normally we must delete the installation folder to go further to the back-end or front-end of Joomla!. For a test installation we can skip this part and go directly to the back-end or front-end. Don&#039;t remove the installation folder. It can be very useful when we have to install Joomla again.&lt;br /&gt;
&lt;br /&gt;
=Make Your Changes=&lt;br /&gt;
Now it is time to made our file changes to Joomla!. All changes we make will be registered and monitored by Git. At any moment you can type the command &amp;lt;tt&amp;gt;git status&amp;lt;/tt&amp;gt; to see which files are modified or untracked. Untracked means that the file at that location is new for Git.&lt;br /&gt;
&lt;br /&gt;
If you made a mistake or you would like to restore a file, use this command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git checkout path/to/file&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you like to remove all changes you made, use the following commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git checkout .&lt;br /&gt;
git clean -f -d&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The first command resets all files. The second command removes untracked files and folders.&lt;br /&gt;
&lt;br /&gt;
==Publish Our Changes on GitHub==&lt;br /&gt;
&lt;br /&gt;
=Push the Change to the Fork=&lt;br /&gt;
After making our changes, we have to upload our changes to our repository on GitHub. After that, we can make a pull request with our changes.&lt;br /&gt;
&lt;br /&gt;
Uploading changes is called &amp;lt;tt&amp;gt;push&amp;lt;/tt&amp;gt; in Git terms. Before we can do that, we have to do something very important. We must create a new branch for our changes. (A branch is a version of our project, remember?) If we don&#039;t do that and made our change directly to the staging branch, the first time there won&#039;t be a problem. But if we made changes for the second time, and the change we made the first time are not merged yet, all these changes will registered too as new changes.&lt;br /&gt;
&lt;br /&gt;
So the first command we are going to run will create a new branch. It will prevent the above described problem.&lt;br /&gt;
Replace name-new-branch with the name of the new branch. This name must be short, and can only contain lower case letters and numbers. Do &#039;&#039;&#039;NOT&#039;&#039;&#039; use spaces. Instead of spaces, use - (minus).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git checkout -b name-new-branch&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The next command tells git that all made changes are good, and are ready to commit.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git add --all&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The following command adds our change to the branch. Please replace the message with a short description of your changes. This description will be the title of the pull request we are going to make.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git commit -m &amp;quot;description&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The final command will push (upload) the changes to our fork. Please replace name-new-branch with the name of the branch you made a few steps above.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git push origin name-new-branch&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Compare Forks and Make a Pull Request==&lt;br /&gt;
After pushing our change to GitHub, go to your fork of the Joomla! CMS.&lt;br /&gt;
&lt;br /&gt;
=Extra information=&lt;br /&gt;
Because the staging version of Joomla! can change any moment, it is very useful to have the possibility for keeping our fork up-to-date. We can do that by adding a remote to our forked project:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git remote add upstream https://github.com/joomla/joomla-cms.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We now added a remote called &amp;quot;upstream&amp;quot;. With the following command, Git will search for new contribution (commits) in the staging branch we don&#039;t have in our fork. If it found some, it will add them to our fork:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git pull upstream staging&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The changes are now only made on our local fork. To upload them to GitHub use the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git push&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category: Bug Squad]]&lt;br /&gt;
[[Category: Development]]&lt;br /&gt;
[[Category:GitHub]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Juliano.freitas</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Translations:Working_with_git_and_github/6/pt-br&amp;diff=404073</id>
		<title>Translations:Working with git and github/6/pt-br</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Translations:Working_with_git_and_github/6/pt-br&amp;diff=404073"/>
		<updated>2017-05-14T03:02:33Z</updated>

		<summary type="html">&lt;p&gt;Juliano.freitas: Created page with &amp;quot;Joomla! usa GitHub e Git para manter seu código. Todos podem contribuir com o software Joomla!. A URL para o projeto Joomla! CMS no GitHub é: https://github.com/joomla/jooml...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Joomla! usa GitHub e Git para manter seu código. Todos podem contribuir com o software Joomla!. A URL para o projeto Joomla! CMS no GitHub é: https://github.com/joomla/joomla-cms&lt;/div&gt;</summary>
		<author><name>Juliano.freitas</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Working_with_git_and_github/pt-br&amp;diff=404072</id>
		<title>Working with git and github/pt-br</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Working_with_git_and_github/pt-br&amp;diff=404072"/>
		<updated>2017-05-14T03:01:16Z</updated>

		<summary type="html">&lt;p&gt;Juliano.freitas: Created page with &amp;quot;Aqui está como o GitHub pode ser usado. [https://www.github.com GitHub] é um site que ajuda a gerenciar Projetos Git de forma visual. Como proprietário de um projeto, você...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&amp;lt;languages /&amp;gt;&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Introdução =&lt;br /&gt;
Este documento irá fornecer informações sobre como contribuir para o CMD Joomla! com a ajuda do Git e GitHub. Se você gosta de fazer uma alteração simples (um arquivo apenas), é mais fácil usar esta documentação: [[S:MyLanguage/Using the Github UI to Make Pull Requests|Usando a interface do Github para Fazer Requisições Pull]]&lt;br /&gt;
Se você gosta de adicionar mudanças mais complexas ou está apenas interessado nisso, continue lendo!&lt;br /&gt;
&lt;br /&gt;
== O que são Git e GitHub? ==&lt;br /&gt;
&lt;br /&gt;
O Git é um sistema de controle de versão distribuído. É um sistema que registra alterações em arquivos e mantém essas alterações em um arquivo de histórico. Você pode sempre olhar para trás para uma versão anterior do seu código e restaurar as alterações, se quiser. Devido ao histórico do arquivo, o Git é muito útil quando você trabalha com muitas pessoas juntas no mesmo projeto.&lt;br /&gt;
&lt;br /&gt;
Aqui está como o GitHub pode ser usado. [https://www.github.com GitHub] é um site que ajuda a gerenciar Projetos Git de forma visual. Como proprietário de um projeto, você pode alterar o código e comparar diferentes versões. Como usuário do projeto, você pode contribuir fazendo uma Requisição Pull. Uma Requisição Pull é uma solicitação para o proprietário puxar algum código para o projeto. Você está oferecendo um pedaço de código (talvez uma solução para um bug) e perguntando se o proprietário do projeto gostaria de usá-lo. Se o proprietário gostar, ele pode fundir (adicionar) ao seu projeto.&lt;br /&gt;
&lt;br /&gt;
Joomla! uses GitHub and Git to maintain its code. Everyone can contribute Joomla! software. The URL to the Joomla! CMS Project on GitHub is: https://github.com/joomla/joomla-cms&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Getting Started =&lt;br /&gt;
== Sign up on GitHub and install Git ==&lt;br /&gt;
First, you will need to register at [http://www.github.com GitHub]. It&#039;s free and easy to do. Just follow the provided steps.&lt;br /&gt;
&lt;br /&gt;
One we are signed up, we need to install Git. The latest version of Git can be found on http://git-scm.com. Download and open the installer. Git is an CLI (Command Line Interface) program. At the start this can be confusing and a bit scary but this document will lead you through the process.&lt;br /&gt;
&lt;br /&gt;
If you&#039;re not an advanced user, just run the installer and press the &amp;quot;next&amp;quot; buttons until the program is installed. Git won&#039;t damage your system. Later you can remove it just like any other program if you like.&lt;br /&gt;
&lt;br /&gt;
Once we installed Git, we open the program called &amp;quot;Git Bash.&amp;quot; A command line will be opened. We&#039;re going to tell Git our name and email address. Git will use this information when we contribute to a project.&lt;br /&gt;
With the following commands we give Git that information:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git config --global user.name &amp;quot;Your name&amp;quot;&lt;br /&gt;
git config --global user.email youremail@mail.com&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the above commands, and all other commands given in this documentation, each line is a new command. So you type the fist line, press enter and then type the second line and press enter.&lt;br /&gt;
&lt;br /&gt;
We are now ready to use Git and go farther with setting up our test installation.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Setting up a test installation=&lt;br /&gt;
For our test installation we need a Web server program so that we can install and run Joomla! on our computer. There are a lot of programs that can do that such as [https://www.mamp.info/ MAMP] and [https://www.apachefriends.org/ XAMPP]. Download an install one of them.&lt;br /&gt;
&lt;br /&gt;
After the installation of such a program (I use MAMP in this documentation), we going to install the latest version of Joomla!. In our case, the latest version of Joomla! is not the last stable release. The last version of Joomla! is the staging branch on GitHub.&lt;br /&gt;
First, let me explain a little bit more about GitHub.&lt;br /&gt;
&lt;br /&gt;
== Fork and Clone Joomla! ==&lt;br /&gt;
On GitHub you can find projects, so called Repositories. Inside a project you might find several versions. Such a version is called a Branch. Joomla! has the following branches:&lt;br /&gt;
* &#039;&#039;&#039;Staging:&#039;&#039;&#039; This branch contains the latest bug fixes and new features of Joomla!&lt;br /&gt;
* &#039;&#039;&#039;Master:&#039;&#039;&#039; This branch is the current stable version of Joomla!&lt;br /&gt;
* &#039;&#039;&#039;3.5-dev&#039;&#039;&#039; This branch contains the files for Joomla! 3.5, which is not stable at this writing.&lt;br /&gt;
&lt;br /&gt;
On our test location we going to use the &#039;&#039;&#039;Staging&#039;&#039;&#039; branch but if we should use this branch directly we have problem. We cannot modify this branch because we are not the owner of it.&lt;br /&gt;
We are going to make a copy of it. On GitHub this is called a Fork. We are the owner of that copy so we can modify it. After modifying we compare our fork with the original project. Then we can make a Pull Request for the changes we&#039;ve made. More about that later.&lt;br /&gt;
You can Fork a branch by pressing the Fork button on the [https://github.com/joomla/joomla-cms Joomla! CMS Github Repository]. This button is located at the right top of the page.&lt;br /&gt;
[[File:Github-fork-button.png|none]]&lt;br /&gt;
&lt;br /&gt;
After forking, we are going to install Joomla! on our local Web server. Go to the folder were you can run files on you Web server. Most of the program use a folder called &amp;lt;tt&amp;gt;htdocs&amp;lt;/tt&amp;gt;. Once we are inside that folder, press the right mouse button an click on: &amp;quot;Git Bash Here&amp;quot;. The command line will open for this location.&lt;br /&gt;
&lt;br /&gt;
Type the following command to download the files from your Fork of the Joomla! CMS to your computer. Please replace &amp;lt;i&amp;gt;username&amp;lt;/i&amp;gt; with the username you are using on GitHub.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git clone https://github.com/username/joomla-cms.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For all commands given in this documentation, you have to open Git via the above described steps. Please remember that for other commands in this documentation. &lt;br /&gt;
&lt;br /&gt;
Once Git is ready, open your browser and go to the installation on your localhost. Usually the URL is something like: &amp;lt;tt&amp;gt;http://localhost/joomla-cms&amp;lt;/tt&amp;gt;. You will now see the default Joomla! installation process. &lt;br /&gt;
&lt;br /&gt;
== Install Joomla! ==&lt;br /&gt;
The installation of Joomla! for our local test installation is almost the same as a regular installation. There are a two little differences.&lt;br /&gt;
&lt;br /&gt;
For the database settings, the password and username are default. Most often the username is &amp;lt;tt&amp;gt;root&amp;lt;/tt&amp;gt; and the password is also &amp;lt;tt&amp;gt;root&amp;lt;/tt&amp;gt; or there is no password. If you still can&#039;t connect to the database, look in the manual for your local Web server for the username and password.&lt;br /&gt;
&lt;br /&gt;
The last difference is the final step of the installation. Normally we must delete the installation folder to go further to the back-end or front-end of Joomla!. For a test installation we can skip this part and go directly to the back-end or front-end. Don&#039;t remove the installation folder. It can be very useful when we have to install Joomla again.&lt;br /&gt;
&lt;br /&gt;
=Make Your Changes=&lt;br /&gt;
Now it is time to made our file changes to Joomla!. All changes we make will be registered and monitored by Git. At any moment you can type the command &amp;lt;tt&amp;gt;git status&amp;lt;/tt&amp;gt; to see which files are modified or untracked. Untracked means that the file at that location is new for Git.&lt;br /&gt;
&lt;br /&gt;
If you made a mistake or you would like to restore a file, use this command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git checkout path/to/file&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you like to remove all changes you made, use the following commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git checkout .&lt;br /&gt;
git clean -f -d&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The first command resets all files. The second command removes untracked files and folders.&lt;br /&gt;
&lt;br /&gt;
==Publish Our Changes on GitHub==&lt;br /&gt;
&lt;br /&gt;
=Push the Change to the Fork=&lt;br /&gt;
After making our changes, we have to upload our changes to our repository on GitHub. After that, we can make a pull request with our changes.&lt;br /&gt;
&lt;br /&gt;
Uploading changes is called &amp;lt;tt&amp;gt;push&amp;lt;/tt&amp;gt; in Git terms. Before we can do that, we have to do something very important. We must create a new branch for our changes. (A branch is a version of our project, remember?) If we don&#039;t do that and made our change directly to the staging branch, the first time there won&#039;t be a problem. But if we made changes for the second time, and the change we made the first time are not merged yet, all these changes will registered too as new changes.&lt;br /&gt;
&lt;br /&gt;
So the first command we are going to run will create a new branch. It will prevent the above described problem.&lt;br /&gt;
Replace name-new-branch with the name of the new branch. This name must be short, and can only contain lower case letters and numbers. Do &#039;&#039;&#039;NOT&#039;&#039;&#039; use spaces. Instead of spaces, use - (minus).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git checkout -b name-new-branch&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The next command tells git that all made changes are good, and are ready to commit.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git add --all&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The following command adds our change to the branch. Please replace the message with a short description of your changes. This description will be the title of the pull request we are going to make.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git commit -m &amp;quot;description&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The final command will push (upload) the changes to our fork. Please replace name-new-branch with the name of the branch you made a few steps above.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git push origin name-new-branch&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Compare Forks and Make a Pull Request==&lt;br /&gt;
After pushing our change to GitHub, go to your fork of the Joomla! CMS.&lt;br /&gt;
&lt;br /&gt;
=Extra information=&lt;br /&gt;
Because the staging version of Joomla! can change any moment, it is very useful to have the possibility for keeping our fork up-to-date. We can do that by adding a remote to our forked project:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git remote add upstream https://github.com/joomla/joomla-cms.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We now added a remote called &amp;quot;upstream&amp;quot;. With the following command, Git will search for new contribution (commits) in the staging branch we don&#039;t have in our fork. If it found some, it will add them to our fork:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git pull upstream staging&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The changes are now only made on our local fork. To upload them to GitHub use the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git push&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category: Bug Squad]]&lt;br /&gt;
[[Category: Development]]&lt;br /&gt;
[[Category:GitHub]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Juliano.freitas</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Translations:Working_with_git_and_github/5/pt-br&amp;diff=404071</id>
		<title>Translations:Working with git and github/5/pt-br</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Translations:Working_with_git_and_github/5/pt-br&amp;diff=404071"/>
		<updated>2017-05-14T03:01:15Z</updated>

		<summary type="html">&lt;p&gt;Juliano.freitas: Created page with &amp;quot;Aqui está como o GitHub pode ser usado. [https://www.github.com GitHub] é um site que ajuda a gerenciar Projetos Git de forma visual. Como proprietário de um projeto, você...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Aqui está como o GitHub pode ser usado. [https://www.github.com GitHub] é um site que ajuda a gerenciar Projetos Git de forma visual. Como proprietário de um projeto, você pode alterar o código e comparar diferentes versões. Como usuário do projeto, você pode contribuir fazendo uma Requisição Pull. Uma Requisição Pull é uma solicitação para o proprietário puxar algum código para o projeto. Você está oferecendo um pedaço de código (talvez uma solução para um bug) e perguntando se o proprietário do projeto gostaria de usá-lo. Se o proprietário gostar, ele pode fundir (adicionar) ao seu projeto.&lt;/div&gt;</summary>
		<author><name>Juliano.freitas</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Working_with_git_and_github/pt-br&amp;diff=404070</id>
		<title>Working with git and github/pt-br</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Working_with_git_and_github/pt-br&amp;diff=404070"/>
		<updated>2017-05-14T02:58:25Z</updated>

		<summary type="html">&lt;p&gt;Juliano.freitas: Created page with &amp;quot;O Git é um sistema de controle de versão distribuído. É um sistema que registra alterações em arquivos e mantém essas alterações em um arquivo de histórico. Você po...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&amp;lt;languages /&amp;gt;&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Introdução =&lt;br /&gt;
Este documento irá fornecer informações sobre como contribuir para o CMD Joomla! com a ajuda do Git e GitHub. Se você gosta de fazer uma alteração simples (um arquivo apenas), é mais fácil usar esta documentação: [[S:MyLanguage/Using the Github UI to Make Pull Requests|Usando a interface do Github para Fazer Requisições Pull]]&lt;br /&gt;
Se você gosta de adicionar mudanças mais complexas ou está apenas interessado nisso, continue lendo!&lt;br /&gt;
&lt;br /&gt;
== O que são Git e GitHub? ==&lt;br /&gt;
&lt;br /&gt;
O Git é um sistema de controle de versão distribuído. É um sistema que registra alterações em arquivos e mantém essas alterações em um arquivo de histórico. Você pode sempre olhar para trás para uma versão anterior do seu código e restaurar as alterações, se quiser. Devido ao histórico do arquivo, o Git é muito útil quando você trabalha com muitas pessoas juntas no mesmo projeto.&lt;br /&gt;
&lt;br /&gt;
Here is how GitHub can be used. [https://www.github.com GitHub] is an website that helps manage Git Projects in a visual way. As owner of a project you can change the code and compare different versions. As a user of the project you can contribute by making a Pull Requests. A pull request is a request to the owner to pull some code into the project. You&#039;re offering a piece of code (perhaps a solution for a bug) and asking if the Project owner would like to use it. If the owner likes it, he can merge (add) it to his project.&lt;br /&gt;
&lt;br /&gt;
Joomla! uses GitHub and Git to maintain its code. Everyone can contribute Joomla! software. The URL to the Joomla! CMS Project on GitHub is: https://github.com/joomla/joomla-cms&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Getting Started =&lt;br /&gt;
== Sign up on GitHub and install Git ==&lt;br /&gt;
First, you will need to register at [http://www.github.com GitHub]. It&#039;s free and easy to do. Just follow the provided steps.&lt;br /&gt;
&lt;br /&gt;
One we are signed up, we need to install Git. The latest version of Git can be found on http://git-scm.com. Download and open the installer. Git is an CLI (Command Line Interface) program. At the start this can be confusing and a bit scary but this document will lead you through the process.&lt;br /&gt;
&lt;br /&gt;
If you&#039;re not an advanced user, just run the installer and press the &amp;quot;next&amp;quot; buttons until the program is installed. Git won&#039;t damage your system. Later you can remove it just like any other program if you like.&lt;br /&gt;
&lt;br /&gt;
Once we installed Git, we open the program called &amp;quot;Git Bash.&amp;quot; A command line will be opened. We&#039;re going to tell Git our name and email address. Git will use this information when we contribute to a project.&lt;br /&gt;
With the following commands we give Git that information:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git config --global user.name &amp;quot;Your name&amp;quot;&lt;br /&gt;
git config --global user.email youremail@mail.com&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the above commands, and all other commands given in this documentation, each line is a new command. So you type the fist line, press enter and then type the second line and press enter.&lt;br /&gt;
&lt;br /&gt;
We are now ready to use Git and go farther with setting up our test installation.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Setting up a test installation=&lt;br /&gt;
For our test installation we need a Web server program so that we can install and run Joomla! on our computer. There are a lot of programs that can do that such as [https://www.mamp.info/ MAMP] and [https://www.apachefriends.org/ XAMPP]. Download an install one of them.&lt;br /&gt;
&lt;br /&gt;
After the installation of such a program (I use MAMP in this documentation), we going to install the latest version of Joomla!. In our case, the latest version of Joomla! is not the last stable release. The last version of Joomla! is the staging branch on GitHub.&lt;br /&gt;
First, let me explain a little bit more about GitHub.&lt;br /&gt;
&lt;br /&gt;
== Fork and Clone Joomla! ==&lt;br /&gt;
On GitHub you can find projects, so called Repositories. Inside a project you might find several versions. Such a version is called a Branch. Joomla! has the following branches:&lt;br /&gt;
* &#039;&#039;&#039;Staging:&#039;&#039;&#039; This branch contains the latest bug fixes and new features of Joomla!&lt;br /&gt;
* &#039;&#039;&#039;Master:&#039;&#039;&#039; This branch is the current stable version of Joomla!&lt;br /&gt;
* &#039;&#039;&#039;3.5-dev&#039;&#039;&#039; This branch contains the files for Joomla! 3.5, which is not stable at this writing.&lt;br /&gt;
&lt;br /&gt;
On our test location we going to use the &#039;&#039;&#039;Staging&#039;&#039;&#039; branch but if we should use this branch directly we have problem. We cannot modify this branch because we are not the owner of it.&lt;br /&gt;
We are going to make a copy of it. On GitHub this is called a Fork. We are the owner of that copy so we can modify it. After modifying we compare our fork with the original project. Then we can make a Pull Request for the changes we&#039;ve made. More about that later.&lt;br /&gt;
You can Fork a branch by pressing the Fork button on the [https://github.com/joomla/joomla-cms Joomla! CMS Github Repository]. This button is located at the right top of the page.&lt;br /&gt;
[[File:Github-fork-button.png|none]]&lt;br /&gt;
&lt;br /&gt;
After forking, we are going to install Joomla! on our local Web server. Go to the folder were you can run files on you Web server. Most of the program use a folder called &amp;lt;tt&amp;gt;htdocs&amp;lt;/tt&amp;gt;. Once we are inside that folder, press the right mouse button an click on: &amp;quot;Git Bash Here&amp;quot;. The command line will open for this location.&lt;br /&gt;
&lt;br /&gt;
Type the following command to download the files from your Fork of the Joomla! CMS to your computer. Please replace &amp;lt;i&amp;gt;username&amp;lt;/i&amp;gt; with the username you are using on GitHub.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git clone https://github.com/username/joomla-cms.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For all commands given in this documentation, you have to open Git via the above described steps. Please remember that for other commands in this documentation. &lt;br /&gt;
&lt;br /&gt;
Once Git is ready, open your browser and go to the installation on your localhost. Usually the URL is something like: &amp;lt;tt&amp;gt;http://localhost/joomla-cms&amp;lt;/tt&amp;gt;. You will now see the default Joomla! installation process. &lt;br /&gt;
&lt;br /&gt;
== Install Joomla! ==&lt;br /&gt;
The installation of Joomla! for our local test installation is almost the same as a regular installation. There are a two little differences.&lt;br /&gt;
&lt;br /&gt;
For the database settings, the password and username are default. Most often the username is &amp;lt;tt&amp;gt;root&amp;lt;/tt&amp;gt; and the password is also &amp;lt;tt&amp;gt;root&amp;lt;/tt&amp;gt; or there is no password. If you still can&#039;t connect to the database, look in the manual for your local Web server for the username and password.&lt;br /&gt;
&lt;br /&gt;
The last difference is the final step of the installation. Normally we must delete the installation folder to go further to the back-end or front-end of Joomla!. For a test installation we can skip this part and go directly to the back-end or front-end. Don&#039;t remove the installation folder. It can be very useful when we have to install Joomla again.&lt;br /&gt;
&lt;br /&gt;
=Make Your Changes=&lt;br /&gt;
Now it is time to made our file changes to Joomla!. All changes we make will be registered and monitored by Git. At any moment you can type the command &amp;lt;tt&amp;gt;git status&amp;lt;/tt&amp;gt; to see which files are modified or untracked. Untracked means that the file at that location is new for Git.&lt;br /&gt;
&lt;br /&gt;
If you made a mistake or you would like to restore a file, use this command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git checkout path/to/file&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you like to remove all changes you made, use the following commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git checkout .&lt;br /&gt;
git clean -f -d&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The first command resets all files. The second command removes untracked files and folders.&lt;br /&gt;
&lt;br /&gt;
==Publish Our Changes on GitHub==&lt;br /&gt;
&lt;br /&gt;
=Push the Change to the Fork=&lt;br /&gt;
After making our changes, we have to upload our changes to our repository on GitHub. After that, we can make a pull request with our changes.&lt;br /&gt;
&lt;br /&gt;
Uploading changes is called &amp;lt;tt&amp;gt;push&amp;lt;/tt&amp;gt; in Git terms. Before we can do that, we have to do something very important. We must create a new branch for our changes. (A branch is a version of our project, remember?) If we don&#039;t do that and made our change directly to the staging branch, the first time there won&#039;t be a problem. But if we made changes for the second time, and the change we made the first time are not merged yet, all these changes will registered too as new changes.&lt;br /&gt;
&lt;br /&gt;
So the first command we are going to run will create a new branch. It will prevent the above described problem.&lt;br /&gt;
Replace name-new-branch with the name of the new branch. This name must be short, and can only contain lower case letters and numbers. Do &#039;&#039;&#039;NOT&#039;&#039;&#039; use spaces. Instead of spaces, use - (minus).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git checkout -b name-new-branch&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The next command tells git that all made changes are good, and are ready to commit.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git add --all&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The following command adds our change to the branch. Please replace the message with a short description of your changes. This description will be the title of the pull request we are going to make.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git commit -m &amp;quot;description&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The final command will push (upload) the changes to our fork. Please replace name-new-branch with the name of the branch you made a few steps above.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git push origin name-new-branch&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Compare Forks and Make a Pull Request==&lt;br /&gt;
After pushing our change to GitHub, go to your fork of the Joomla! CMS.&lt;br /&gt;
&lt;br /&gt;
=Extra information=&lt;br /&gt;
Because the staging version of Joomla! can change any moment, it is very useful to have the possibility for keeping our fork up-to-date. We can do that by adding a remote to our forked project:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git remote add upstream https://github.com/joomla/joomla-cms.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We now added a remote called &amp;quot;upstream&amp;quot;. With the following command, Git will search for new contribution (commits) in the staging branch we don&#039;t have in our fork. If it found some, it will add them to our fork:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git pull upstream staging&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The changes are now only made on our local fork. To upload them to GitHub use the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git push&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category: Bug Squad]]&lt;br /&gt;
[[Category: Development]]&lt;br /&gt;
[[Category:GitHub]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Juliano.freitas</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Translations:Working_with_git_and_github/4/pt-br&amp;diff=404069</id>
		<title>Translations:Working with git and github/4/pt-br</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Translations:Working_with_git_and_github/4/pt-br&amp;diff=404069"/>
		<updated>2017-05-14T02:58:25Z</updated>

		<summary type="html">&lt;p&gt;Juliano.freitas: Created page with &amp;quot;O Git é um sistema de controle de versão distribuído. É um sistema que registra alterações em arquivos e mantém essas alterações em um arquivo de histórico. Você po...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;O Git é um sistema de controle de versão distribuído. É um sistema que registra alterações em arquivos e mantém essas alterações em um arquivo de histórico. Você pode sempre olhar para trás para uma versão anterior do seu código e restaurar as alterações, se quiser. Devido ao histórico do arquivo, o Git é muito útil quando você trabalha com muitas pessoas juntas no mesmo projeto.&lt;/div&gt;</summary>
		<author><name>Juliano.freitas</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Working_with_git_and_github/pt-br&amp;diff=404068</id>
		<title>Working with git and github/pt-br</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Working_with_git_and_github/pt-br&amp;diff=404068"/>
		<updated>2017-05-14T02:57:37Z</updated>

		<summary type="html">&lt;p&gt;Juliano.freitas: Created page with &amp;quot;== O que são Git e GitHub? ==&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&amp;lt;languages /&amp;gt;&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Introdução =&lt;br /&gt;
Este documento irá fornecer informações sobre como contribuir para o CMD Joomla! com a ajuda do Git e GitHub. Se você gosta de fazer uma alteração simples (um arquivo apenas), é mais fácil usar esta documentação: [[S:MyLanguage/Using the Github UI to Make Pull Requests|Usando a interface do Github para Fazer Requisições Pull]]&lt;br /&gt;
Se você gosta de adicionar mudanças mais complexas ou está apenas interessado nisso, continue lendo!&lt;br /&gt;
&lt;br /&gt;
== O que são Git e GitHub? ==&lt;br /&gt;
&lt;br /&gt;
Git is a distributed version control system. It is a system that records changes in files and keeps these changes in a history file. You can always look back to an earlier version of your code and restore changes if you like. Because of the history archive, Git is very useful when you work with many people together on the same project.&lt;br /&gt;
&lt;br /&gt;
Here is how GitHub can be used. [https://www.github.com GitHub] is an website that helps manage Git Projects in a visual way. As owner of a project you can change the code and compare different versions. As a user of the project you can contribute by making a Pull Requests. A pull request is a request to the owner to pull some code into the project. You&#039;re offering a piece of code (perhaps a solution for a bug) and asking if the Project owner would like to use it. If the owner likes it, he can merge (add) it to his project.&lt;br /&gt;
&lt;br /&gt;
Joomla! uses GitHub and Git to maintain its code. Everyone can contribute Joomla! software. The URL to the Joomla! CMS Project on GitHub is: https://github.com/joomla/joomla-cms&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Getting Started =&lt;br /&gt;
== Sign up on GitHub and install Git ==&lt;br /&gt;
First, you will need to register at [http://www.github.com GitHub]. It&#039;s free and easy to do. Just follow the provided steps.&lt;br /&gt;
&lt;br /&gt;
One we are signed up, we need to install Git. The latest version of Git can be found on http://git-scm.com. Download and open the installer. Git is an CLI (Command Line Interface) program. At the start this can be confusing and a bit scary but this document will lead you through the process.&lt;br /&gt;
&lt;br /&gt;
If you&#039;re not an advanced user, just run the installer and press the &amp;quot;next&amp;quot; buttons until the program is installed. Git won&#039;t damage your system. Later you can remove it just like any other program if you like.&lt;br /&gt;
&lt;br /&gt;
Once we installed Git, we open the program called &amp;quot;Git Bash.&amp;quot; A command line will be opened. We&#039;re going to tell Git our name and email address. Git will use this information when we contribute to a project.&lt;br /&gt;
With the following commands we give Git that information:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git config --global user.name &amp;quot;Your name&amp;quot;&lt;br /&gt;
git config --global user.email youremail@mail.com&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the above commands, and all other commands given in this documentation, each line is a new command. So you type the fist line, press enter and then type the second line and press enter.&lt;br /&gt;
&lt;br /&gt;
We are now ready to use Git and go farther with setting up our test installation.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Setting up a test installation=&lt;br /&gt;
For our test installation we need a Web server program so that we can install and run Joomla! on our computer. There are a lot of programs that can do that such as [https://www.mamp.info/ MAMP] and [https://www.apachefriends.org/ XAMPP]. Download an install one of them.&lt;br /&gt;
&lt;br /&gt;
After the installation of such a program (I use MAMP in this documentation), we going to install the latest version of Joomla!. In our case, the latest version of Joomla! is not the last stable release. The last version of Joomla! is the staging branch on GitHub.&lt;br /&gt;
First, let me explain a little bit more about GitHub.&lt;br /&gt;
&lt;br /&gt;
== Fork and Clone Joomla! ==&lt;br /&gt;
On GitHub you can find projects, so called Repositories. Inside a project you might find several versions. Such a version is called a Branch. Joomla! has the following branches:&lt;br /&gt;
* &#039;&#039;&#039;Staging:&#039;&#039;&#039; This branch contains the latest bug fixes and new features of Joomla!&lt;br /&gt;
* &#039;&#039;&#039;Master:&#039;&#039;&#039; This branch is the current stable version of Joomla!&lt;br /&gt;
* &#039;&#039;&#039;3.5-dev&#039;&#039;&#039; This branch contains the files for Joomla! 3.5, which is not stable at this writing.&lt;br /&gt;
&lt;br /&gt;
On our test location we going to use the &#039;&#039;&#039;Staging&#039;&#039;&#039; branch but if we should use this branch directly we have problem. We cannot modify this branch because we are not the owner of it.&lt;br /&gt;
We are going to make a copy of it. On GitHub this is called a Fork. We are the owner of that copy so we can modify it. After modifying we compare our fork with the original project. Then we can make a Pull Request for the changes we&#039;ve made. More about that later.&lt;br /&gt;
You can Fork a branch by pressing the Fork button on the [https://github.com/joomla/joomla-cms Joomla! CMS Github Repository]. This button is located at the right top of the page.&lt;br /&gt;
[[File:Github-fork-button.png|none]]&lt;br /&gt;
&lt;br /&gt;
After forking, we are going to install Joomla! on our local Web server. Go to the folder were you can run files on you Web server. Most of the program use a folder called &amp;lt;tt&amp;gt;htdocs&amp;lt;/tt&amp;gt;. Once we are inside that folder, press the right mouse button an click on: &amp;quot;Git Bash Here&amp;quot;. The command line will open for this location.&lt;br /&gt;
&lt;br /&gt;
Type the following command to download the files from your Fork of the Joomla! CMS to your computer. Please replace &amp;lt;i&amp;gt;username&amp;lt;/i&amp;gt; with the username you are using on GitHub.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git clone https://github.com/username/joomla-cms.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For all commands given in this documentation, you have to open Git via the above described steps. Please remember that for other commands in this documentation. &lt;br /&gt;
&lt;br /&gt;
Once Git is ready, open your browser and go to the installation on your localhost. Usually the URL is something like: &amp;lt;tt&amp;gt;http://localhost/joomla-cms&amp;lt;/tt&amp;gt;. You will now see the default Joomla! installation process. &lt;br /&gt;
&lt;br /&gt;
== Install Joomla! ==&lt;br /&gt;
The installation of Joomla! for our local test installation is almost the same as a regular installation. There are a two little differences.&lt;br /&gt;
&lt;br /&gt;
For the database settings, the password and username are default. Most often the username is &amp;lt;tt&amp;gt;root&amp;lt;/tt&amp;gt; and the password is also &amp;lt;tt&amp;gt;root&amp;lt;/tt&amp;gt; or there is no password. If you still can&#039;t connect to the database, look in the manual for your local Web server for the username and password.&lt;br /&gt;
&lt;br /&gt;
The last difference is the final step of the installation. Normally we must delete the installation folder to go further to the back-end or front-end of Joomla!. For a test installation we can skip this part and go directly to the back-end or front-end. Don&#039;t remove the installation folder. It can be very useful when we have to install Joomla again.&lt;br /&gt;
&lt;br /&gt;
=Make Your Changes=&lt;br /&gt;
Now it is time to made our file changes to Joomla!. All changes we make will be registered and monitored by Git. At any moment you can type the command &amp;lt;tt&amp;gt;git status&amp;lt;/tt&amp;gt; to see which files are modified or untracked. Untracked means that the file at that location is new for Git.&lt;br /&gt;
&lt;br /&gt;
If you made a mistake or you would like to restore a file, use this command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git checkout path/to/file&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you like to remove all changes you made, use the following commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git checkout .&lt;br /&gt;
git clean -f -d&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The first command resets all files. The second command removes untracked files and folders.&lt;br /&gt;
&lt;br /&gt;
==Publish Our Changes on GitHub==&lt;br /&gt;
&lt;br /&gt;
=Push the Change to the Fork=&lt;br /&gt;
After making our changes, we have to upload our changes to our repository on GitHub. After that, we can make a pull request with our changes.&lt;br /&gt;
&lt;br /&gt;
Uploading changes is called &amp;lt;tt&amp;gt;push&amp;lt;/tt&amp;gt; in Git terms. Before we can do that, we have to do something very important. We must create a new branch for our changes. (A branch is a version of our project, remember?) If we don&#039;t do that and made our change directly to the staging branch, the first time there won&#039;t be a problem. But if we made changes for the second time, and the change we made the first time are not merged yet, all these changes will registered too as new changes.&lt;br /&gt;
&lt;br /&gt;
So the first command we are going to run will create a new branch. It will prevent the above described problem.&lt;br /&gt;
Replace name-new-branch with the name of the new branch. This name must be short, and can only contain lower case letters and numbers. Do &#039;&#039;&#039;NOT&#039;&#039;&#039; use spaces. Instead of spaces, use - (minus).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git checkout -b name-new-branch&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The next command tells git that all made changes are good, and are ready to commit.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git add --all&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The following command adds our change to the branch. Please replace the message with a short description of your changes. This description will be the title of the pull request we are going to make.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git commit -m &amp;quot;description&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The final command will push (upload) the changes to our fork. Please replace name-new-branch with the name of the branch you made a few steps above.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git push origin name-new-branch&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Compare Forks and Make a Pull Request==&lt;br /&gt;
After pushing our change to GitHub, go to your fork of the Joomla! CMS.&lt;br /&gt;
&lt;br /&gt;
=Extra information=&lt;br /&gt;
Because the staging version of Joomla! can change any moment, it is very useful to have the possibility for keeping our fork up-to-date. We can do that by adding a remote to our forked project:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git remote add upstream https://github.com/joomla/joomla-cms.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We now added a remote called &amp;quot;upstream&amp;quot;. With the following command, Git will search for new contribution (commits) in the staging branch we don&#039;t have in our fork. If it found some, it will add them to our fork:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git pull upstream staging&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The changes are now only made on our local fork. To upload them to GitHub use the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git push&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category: Bug Squad]]&lt;br /&gt;
[[Category: Development]]&lt;br /&gt;
[[Category:GitHub]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Juliano.freitas</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Translations:Working_with_git_and_github/3/pt-br&amp;diff=404067</id>
		<title>Translations:Working with git and github/3/pt-br</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Translations:Working_with_git_and_github/3/pt-br&amp;diff=404067"/>
		<updated>2017-05-14T02:57:37Z</updated>

		<summary type="html">&lt;p&gt;Juliano.freitas: Created page with &amp;quot;== O que são Git e GitHub? ==&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== O que são Git e GitHub? ==&lt;/div&gt;</summary>
		<author><name>Juliano.freitas</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Working_with_git_and_github/pt-br&amp;diff=404066</id>
		<title>Working with git and github/pt-br</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Working_with_git_and_github/pt-br&amp;diff=404066"/>
		<updated>2017-05-14T02:57:09Z</updated>

		<summary type="html">&lt;p&gt;Juliano.freitas: Created page with &amp;quot;Este documento irá fornecer informações sobre como contribuir para o CMD Joomla! com a ajuda do Git e GitHub. Se você gosta de fazer uma alteração simples (um arquivo ap...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&amp;lt;languages /&amp;gt;&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Introdução =&lt;br /&gt;
Este documento irá fornecer informações sobre como contribuir para o CMD Joomla! com a ajuda do Git e GitHub. Se você gosta de fazer uma alteração simples (um arquivo apenas), é mais fácil usar esta documentação: [[S:MyLanguage/Using the Github UI to Make Pull Requests|Usando a interface do Github para Fazer Requisições Pull]]&lt;br /&gt;
Se você gosta de adicionar mudanças mais complexas ou está apenas interessado nisso, continue lendo!&lt;br /&gt;
&lt;br /&gt;
== What are Git and GitHub? ==&lt;br /&gt;
&lt;br /&gt;
Git is a distributed version control system. It is a system that records changes in files and keeps these changes in a history file. You can always look back to an earlier version of your code and restore changes if you like. Because of the history archive, Git is very useful when you work with many people together on the same project.&lt;br /&gt;
&lt;br /&gt;
Here is how GitHub can be used. [https://www.github.com GitHub] is an website that helps manage Git Projects in a visual way. As owner of a project you can change the code and compare different versions. As a user of the project you can contribute by making a Pull Requests. A pull request is a request to the owner to pull some code into the project. You&#039;re offering a piece of code (perhaps a solution for a bug) and asking if the Project owner would like to use it. If the owner likes it, he can merge (add) it to his project.&lt;br /&gt;
&lt;br /&gt;
Joomla! uses GitHub and Git to maintain its code. Everyone can contribute Joomla! software. The URL to the Joomla! CMS Project on GitHub is: https://github.com/joomla/joomla-cms&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Getting Started =&lt;br /&gt;
== Sign up on GitHub and install Git ==&lt;br /&gt;
First, you will need to register at [http://www.github.com GitHub]. It&#039;s free and easy to do. Just follow the provided steps.&lt;br /&gt;
&lt;br /&gt;
One we are signed up, we need to install Git. The latest version of Git can be found on http://git-scm.com. Download and open the installer. Git is an CLI (Command Line Interface) program. At the start this can be confusing and a bit scary but this document will lead you through the process.&lt;br /&gt;
&lt;br /&gt;
If you&#039;re not an advanced user, just run the installer and press the &amp;quot;next&amp;quot; buttons until the program is installed. Git won&#039;t damage your system. Later you can remove it just like any other program if you like.&lt;br /&gt;
&lt;br /&gt;
Once we installed Git, we open the program called &amp;quot;Git Bash.&amp;quot; A command line will be opened. We&#039;re going to tell Git our name and email address. Git will use this information when we contribute to a project.&lt;br /&gt;
With the following commands we give Git that information:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git config --global user.name &amp;quot;Your name&amp;quot;&lt;br /&gt;
git config --global user.email youremail@mail.com&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the above commands, and all other commands given in this documentation, each line is a new command. So you type the fist line, press enter and then type the second line and press enter.&lt;br /&gt;
&lt;br /&gt;
We are now ready to use Git and go farther with setting up our test installation.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Setting up a test installation=&lt;br /&gt;
For our test installation we need a Web server program so that we can install and run Joomla! on our computer. There are a lot of programs that can do that such as [https://www.mamp.info/ MAMP] and [https://www.apachefriends.org/ XAMPP]. Download an install one of them.&lt;br /&gt;
&lt;br /&gt;
After the installation of such a program (I use MAMP in this documentation), we going to install the latest version of Joomla!. In our case, the latest version of Joomla! is not the last stable release. The last version of Joomla! is the staging branch on GitHub.&lt;br /&gt;
First, let me explain a little bit more about GitHub.&lt;br /&gt;
&lt;br /&gt;
== Fork and Clone Joomla! ==&lt;br /&gt;
On GitHub you can find projects, so called Repositories. Inside a project you might find several versions. Such a version is called a Branch. Joomla! has the following branches:&lt;br /&gt;
* &#039;&#039;&#039;Staging:&#039;&#039;&#039; This branch contains the latest bug fixes and new features of Joomla!&lt;br /&gt;
* &#039;&#039;&#039;Master:&#039;&#039;&#039; This branch is the current stable version of Joomla!&lt;br /&gt;
* &#039;&#039;&#039;3.5-dev&#039;&#039;&#039; This branch contains the files for Joomla! 3.5, which is not stable at this writing.&lt;br /&gt;
&lt;br /&gt;
On our test location we going to use the &#039;&#039;&#039;Staging&#039;&#039;&#039; branch but if we should use this branch directly we have problem. We cannot modify this branch because we are not the owner of it.&lt;br /&gt;
We are going to make a copy of it. On GitHub this is called a Fork. We are the owner of that copy so we can modify it. After modifying we compare our fork with the original project. Then we can make a Pull Request for the changes we&#039;ve made. More about that later.&lt;br /&gt;
You can Fork a branch by pressing the Fork button on the [https://github.com/joomla/joomla-cms Joomla! CMS Github Repository]. This button is located at the right top of the page.&lt;br /&gt;
[[File:Github-fork-button.png|none]]&lt;br /&gt;
&lt;br /&gt;
After forking, we are going to install Joomla! on our local Web server. Go to the folder were you can run files on you Web server. Most of the program use a folder called &amp;lt;tt&amp;gt;htdocs&amp;lt;/tt&amp;gt;. Once we are inside that folder, press the right mouse button an click on: &amp;quot;Git Bash Here&amp;quot;. The command line will open for this location.&lt;br /&gt;
&lt;br /&gt;
Type the following command to download the files from your Fork of the Joomla! CMS to your computer. Please replace &amp;lt;i&amp;gt;username&amp;lt;/i&amp;gt; with the username you are using on GitHub.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git clone https://github.com/username/joomla-cms.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For all commands given in this documentation, you have to open Git via the above described steps. Please remember that for other commands in this documentation. &lt;br /&gt;
&lt;br /&gt;
Once Git is ready, open your browser and go to the installation on your localhost. Usually the URL is something like: &amp;lt;tt&amp;gt;http://localhost/joomla-cms&amp;lt;/tt&amp;gt;. You will now see the default Joomla! installation process. &lt;br /&gt;
&lt;br /&gt;
== Install Joomla! ==&lt;br /&gt;
The installation of Joomla! for our local test installation is almost the same as a regular installation. There are a two little differences.&lt;br /&gt;
&lt;br /&gt;
For the database settings, the password and username are default. Most often the username is &amp;lt;tt&amp;gt;root&amp;lt;/tt&amp;gt; and the password is also &amp;lt;tt&amp;gt;root&amp;lt;/tt&amp;gt; or there is no password. If you still can&#039;t connect to the database, look in the manual for your local Web server for the username and password.&lt;br /&gt;
&lt;br /&gt;
The last difference is the final step of the installation. Normally we must delete the installation folder to go further to the back-end or front-end of Joomla!. For a test installation we can skip this part and go directly to the back-end or front-end. Don&#039;t remove the installation folder. It can be very useful when we have to install Joomla again.&lt;br /&gt;
&lt;br /&gt;
=Make Your Changes=&lt;br /&gt;
Now it is time to made our file changes to Joomla!. All changes we make will be registered and monitored by Git. At any moment you can type the command &amp;lt;tt&amp;gt;git status&amp;lt;/tt&amp;gt; to see which files are modified or untracked. Untracked means that the file at that location is new for Git.&lt;br /&gt;
&lt;br /&gt;
If you made a mistake or you would like to restore a file, use this command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git checkout path/to/file&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you like to remove all changes you made, use the following commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git checkout .&lt;br /&gt;
git clean -f -d&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The first command resets all files. The second command removes untracked files and folders.&lt;br /&gt;
&lt;br /&gt;
==Publish Our Changes on GitHub==&lt;br /&gt;
&lt;br /&gt;
=Push the Change to the Fork=&lt;br /&gt;
After making our changes, we have to upload our changes to our repository on GitHub. After that, we can make a pull request with our changes.&lt;br /&gt;
&lt;br /&gt;
Uploading changes is called &amp;lt;tt&amp;gt;push&amp;lt;/tt&amp;gt; in Git terms. Before we can do that, we have to do something very important. We must create a new branch for our changes. (A branch is a version of our project, remember?) If we don&#039;t do that and made our change directly to the staging branch, the first time there won&#039;t be a problem. But if we made changes for the second time, and the change we made the first time are not merged yet, all these changes will registered too as new changes.&lt;br /&gt;
&lt;br /&gt;
So the first command we are going to run will create a new branch. It will prevent the above described problem.&lt;br /&gt;
Replace name-new-branch with the name of the new branch. This name must be short, and can only contain lower case letters and numbers. Do &#039;&#039;&#039;NOT&#039;&#039;&#039; use spaces. Instead of spaces, use - (minus).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git checkout -b name-new-branch&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The next command tells git that all made changes are good, and are ready to commit.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git add --all&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The following command adds our change to the branch. Please replace the message with a short description of your changes. This description will be the title of the pull request we are going to make.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git commit -m &amp;quot;description&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The final command will push (upload) the changes to our fork. Please replace name-new-branch with the name of the branch you made a few steps above.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git push origin name-new-branch&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Compare Forks and Make a Pull Request==&lt;br /&gt;
After pushing our change to GitHub, go to your fork of the Joomla! CMS.&lt;br /&gt;
&lt;br /&gt;
=Extra information=&lt;br /&gt;
Because the staging version of Joomla! can change any moment, it is very useful to have the possibility for keeping our fork up-to-date. We can do that by adding a remote to our forked project:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git remote add upstream https://github.com/joomla/joomla-cms.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We now added a remote called &amp;quot;upstream&amp;quot;. With the following command, Git will search for new contribution (commits) in the staging branch we don&#039;t have in our fork. If it found some, it will add them to our fork:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git pull upstream staging&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The changes are now only made on our local fork. To upload them to GitHub use the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git push&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category: Bug Squad]]&lt;br /&gt;
[[Category: Development]]&lt;br /&gt;
[[Category:GitHub]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Juliano.freitas</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Translations:Working_with_git_and_github/2/pt-br&amp;diff=404065</id>
		<title>Translations:Working with git and github/2/pt-br</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Translations:Working_with_git_and_github/2/pt-br&amp;diff=404065"/>
		<updated>2017-05-14T02:57:09Z</updated>

		<summary type="html">&lt;p&gt;Juliano.freitas: Created page with &amp;quot;Este documento irá fornecer informações sobre como contribuir para o CMD Joomla! com a ajuda do Git e GitHub. Se você gosta de fazer uma alteração simples (um arquivo ap...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Este documento irá fornecer informações sobre como contribuir para o CMD Joomla! com a ajuda do Git e GitHub. Se você gosta de fazer uma alteração simples (um arquivo apenas), é mais fácil usar esta documentação: [[S:MyLanguage/Using the Github UI to Make Pull Requests|Usando a interface do Github para Fazer Requisições Pull]]&lt;br /&gt;
Se você gosta de adicionar mudanças mais complexas ou está apenas interessado nisso, continue lendo!&lt;/div&gt;</summary>
		<author><name>Juliano.freitas</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Working_with_git_and_github/pt-br&amp;diff=404064</id>
		<title>Working with git and github/pt-br</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Working_with_git_and_github/pt-br&amp;diff=404064"/>
		<updated>2017-05-14T02:52:46Z</updated>

		<summary type="html">&lt;p&gt;Juliano.freitas: Created page with &amp;quot;= Introdução =&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&amp;lt;languages /&amp;gt;&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Introdução =&lt;br /&gt;
This document will provide information about contributing to the Joomla! CMS with help of Git and GitHub. If you like to made a simple change (one file only), it is easier to use this documentation: [[S:MyLanguage/Using the Github UI to Make Pull Requests|Using the Github UI to Make Pull Requests]]&lt;br /&gt;
If you like to add more complex changes or you&#039;re just interested in this, keep reading!&lt;br /&gt;
&lt;br /&gt;
== What are Git and GitHub? ==&lt;br /&gt;
&lt;br /&gt;
Git is a distributed version control system. It is a system that records changes in files and keeps these changes in a history file. You can always look back to an earlier version of your code and restore changes if you like. Because of the history archive, Git is very useful when you work with many people together on the same project.&lt;br /&gt;
&lt;br /&gt;
Here is how GitHub can be used. [https://www.github.com GitHub] is an website that helps manage Git Projects in a visual way. As owner of a project you can change the code and compare different versions. As a user of the project you can contribute by making a Pull Requests. A pull request is a request to the owner to pull some code into the project. You&#039;re offering a piece of code (perhaps a solution for a bug) and asking if the Project owner would like to use it. If the owner likes it, he can merge (add) it to his project.&lt;br /&gt;
&lt;br /&gt;
Joomla! uses GitHub and Git to maintain its code. Everyone can contribute Joomla! software. The URL to the Joomla! CMS Project on GitHub is: https://github.com/joomla/joomla-cms&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Getting Started =&lt;br /&gt;
== Sign up on GitHub and install Git ==&lt;br /&gt;
First, you will need to register at [http://www.github.com GitHub]. It&#039;s free and easy to do. Just follow the provided steps.&lt;br /&gt;
&lt;br /&gt;
One we are signed up, we need to install Git. The latest version of Git can be found on http://git-scm.com. Download and open the installer. Git is an CLI (Command Line Interface) program. At the start this can be confusing and a bit scary but this document will lead you through the process.&lt;br /&gt;
&lt;br /&gt;
If you&#039;re not an advanced user, just run the installer and press the &amp;quot;next&amp;quot; buttons until the program is installed. Git won&#039;t damage your system. Later you can remove it just like any other program if you like.&lt;br /&gt;
&lt;br /&gt;
Once we installed Git, we open the program called &amp;quot;Git Bash.&amp;quot; A command line will be opened. We&#039;re going to tell Git our name and email address. Git will use this information when we contribute to a project.&lt;br /&gt;
With the following commands we give Git that information:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git config --global user.name &amp;quot;Your name&amp;quot;&lt;br /&gt;
git config --global user.email youremail@mail.com&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the above commands, and all other commands given in this documentation, each line is a new command. So you type the fist line, press enter and then type the second line and press enter.&lt;br /&gt;
&lt;br /&gt;
We are now ready to use Git and go farther with setting up our test installation.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Setting up a test installation=&lt;br /&gt;
For our test installation we need a Web server program so that we can install and run Joomla! on our computer. There are a lot of programs that can do that such as [https://www.mamp.info/ MAMP] and [https://www.apachefriends.org/ XAMPP]. Download an install one of them.&lt;br /&gt;
&lt;br /&gt;
After the installation of such a program (I use MAMP in this documentation), we going to install the latest version of Joomla!. In our case, the latest version of Joomla! is not the last stable release. The last version of Joomla! is the staging branch on GitHub.&lt;br /&gt;
First, let me explain a little bit more about GitHub.&lt;br /&gt;
&lt;br /&gt;
== Fork and Clone Joomla! ==&lt;br /&gt;
On GitHub you can find projects, so called Repositories. Inside a project you might find several versions. Such a version is called a Branch. Joomla! has the following branches:&lt;br /&gt;
* &#039;&#039;&#039;Staging:&#039;&#039;&#039; This branch contains the latest bug fixes and new features of Joomla!&lt;br /&gt;
* &#039;&#039;&#039;Master:&#039;&#039;&#039; This branch is the current stable version of Joomla!&lt;br /&gt;
* &#039;&#039;&#039;3.5-dev&#039;&#039;&#039; This branch contains the files for Joomla! 3.5, which is not stable at this writing.&lt;br /&gt;
&lt;br /&gt;
On our test location we going to use the &#039;&#039;&#039;Staging&#039;&#039;&#039; branch but if we should use this branch directly we have problem. We cannot modify this branch because we are not the owner of it.&lt;br /&gt;
We are going to make a copy of it. On GitHub this is called a Fork. We are the owner of that copy so we can modify it. After modifying we compare our fork with the original project. Then we can make a Pull Request for the changes we&#039;ve made. More about that later.&lt;br /&gt;
You can Fork a branch by pressing the Fork button on the [https://github.com/joomla/joomla-cms Joomla! CMS Github Repository]. This button is located at the right top of the page.&lt;br /&gt;
[[File:Github-fork-button.png|none]]&lt;br /&gt;
&lt;br /&gt;
After forking, we are going to install Joomla! on our local Web server. Go to the folder were you can run files on you Web server. Most of the program use a folder called &amp;lt;tt&amp;gt;htdocs&amp;lt;/tt&amp;gt;. Once we are inside that folder, press the right mouse button an click on: &amp;quot;Git Bash Here&amp;quot;. The command line will open for this location.&lt;br /&gt;
&lt;br /&gt;
Type the following command to download the files from your Fork of the Joomla! CMS to your computer. Please replace &amp;lt;i&amp;gt;username&amp;lt;/i&amp;gt; with the username you are using on GitHub.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git clone https://github.com/username/joomla-cms.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For all commands given in this documentation, you have to open Git via the above described steps. Please remember that for other commands in this documentation. &lt;br /&gt;
&lt;br /&gt;
Once Git is ready, open your browser and go to the installation on your localhost. Usually the URL is something like: &amp;lt;tt&amp;gt;http://localhost/joomla-cms&amp;lt;/tt&amp;gt;. You will now see the default Joomla! installation process. &lt;br /&gt;
&lt;br /&gt;
== Install Joomla! ==&lt;br /&gt;
The installation of Joomla! for our local test installation is almost the same as a regular installation. There are a two little differences.&lt;br /&gt;
&lt;br /&gt;
For the database settings, the password and username are default. Most often the username is &amp;lt;tt&amp;gt;root&amp;lt;/tt&amp;gt; and the password is also &amp;lt;tt&amp;gt;root&amp;lt;/tt&amp;gt; or there is no password. If you still can&#039;t connect to the database, look in the manual for your local Web server for the username and password.&lt;br /&gt;
&lt;br /&gt;
The last difference is the final step of the installation. Normally we must delete the installation folder to go further to the back-end or front-end of Joomla!. For a test installation we can skip this part and go directly to the back-end or front-end. Don&#039;t remove the installation folder. It can be very useful when we have to install Joomla again.&lt;br /&gt;
&lt;br /&gt;
=Make Your Changes=&lt;br /&gt;
Now it is time to made our file changes to Joomla!. All changes we make will be registered and monitored by Git. At any moment you can type the command &amp;lt;tt&amp;gt;git status&amp;lt;/tt&amp;gt; to see which files are modified or untracked. Untracked means that the file at that location is new for Git.&lt;br /&gt;
&lt;br /&gt;
If you made a mistake or you would like to restore a file, use this command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git checkout path/to/file&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you like to remove all changes you made, use the following commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git checkout .&lt;br /&gt;
git clean -f -d&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The first command resets all files. The second command removes untracked files and folders.&lt;br /&gt;
&lt;br /&gt;
==Publish Our Changes on GitHub==&lt;br /&gt;
&lt;br /&gt;
=Push the Change to the Fork=&lt;br /&gt;
After making our changes, we have to upload our changes to our repository on GitHub. After that, we can make a pull request with our changes.&lt;br /&gt;
&lt;br /&gt;
Uploading changes is called &amp;lt;tt&amp;gt;push&amp;lt;/tt&amp;gt; in Git terms. Before we can do that, we have to do something very important. We must create a new branch for our changes. (A branch is a version of our project, remember?) If we don&#039;t do that and made our change directly to the staging branch, the first time there won&#039;t be a problem. But if we made changes for the second time, and the change we made the first time are not merged yet, all these changes will registered too as new changes.&lt;br /&gt;
&lt;br /&gt;
So the first command we are going to run will create a new branch. It will prevent the above described problem.&lt;br /&gt;
Replace name-new-branch with the name of the new branch. This name must be short, and can only contain lower case letters and numbers. Do &#039;&#039;&#039;NOT&#039;&#039;&#039; use spaces. Instead of spaces, use - (minus).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git checkout -b name-new-branch&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The next command tells git that all made changes are good, and are ready to commit.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git add --all&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The following command adds our change to the branch. Please replace the message with a short description of your changes. This description will be the title of the pull request we are going to make.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git commit -m &amp;quot;description&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The final command will push (upload) the changes to our fork. Please replace name-new-branch with the name of the branch you made a few steps above.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git push origin name-new-branch&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Compare Forks and Make a Pull Request==&lt;br /&gt;
After pushing our change to GitHub, go to your fork of the Joomla! CMS.&lt;br /&gt;
&lt;br /&gt;
=Extra information=&lt;br /&gt;
Because the staging version of Joomla! can change any moment, it is very useful to have the possibility for keeping our fork up-to-date. We can do that by adding a remote to our forked project:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git remote add upstream https://github.com/joomla/joomla-cms.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We now added a remote called &amp;quot;upstream&amp;quot;. With the following command, Git will search for new contribution (commits) in the staging branch we don&#039;t have in our fork. If it found some, it will add them to our fork:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git pull upstream staging&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The changes are now only made on our local fork. To upload them to GitHub use the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git push&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category: Bug Squad]]&lt;br /&gt;
[[Category: Development]]&lt;br /&gt;
[[Category:GitHub]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Juliano.freitas</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Translations:Working_with_git_and_github/1/pt-br&amp;diff=404063</id>
		<title>Translations:Working with git and github/1/pt-br</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Translations:Working_with_git_and_github/1/pt-br&amp;diff=404063"/>
		<updated>2017-05-14T02:52:45Z</updated>

		<summary type="html">&lt;p&gt;Juliano.freitas: Created page with &amp;quot;= Introdução =&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Introdução =&lt;/div&gt;</summary>
		<author><name>Juliano.freitas</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Working_with_git_and_github/pt-br&amp;diff=404062</id>
		<title>Working with git and github/pt-br</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Working_with_git_and_github/pt-br&amp;diff=404062"/>
		<updated>2017-05-14T02:52:45Z</updated>

		<summary type="html">&lt;p&gt;Juliano.freitas: Created page with &amp;quot;Trabalhando com git e github&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&amp;lt;languages /&amp;gt;&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Intro =&lt;br /&gt;
This document will provide information about contributing to the Joomla! CMS with help of Git and GitHub. If you like to made a simple change (one file only), it is easier to use this documentation: [[S:MyLanguage/Using the Github UI to Make Pull Requests|Using the Github UI to Make Pull Requests]]&lt;br /&gt;
If you like to add more complex changes or you&#039;re just interested in this, keep reading!&lt;br /&gt;
&lt;br /&gt;
== What are Git and GitHub? ==&lt;br /&gt;
&lt;br /&gt;
Git is a distributed version control system. It is a system that records changes in files and keeps these changes in a history file. You can always look back to an earlier version of your code and restore changes if you like. Because of the history archive, Git is very useful when you work with many people together on the same project.&lt;br /&gt;
&lt;br /&gt;
Here is how GitHub can be used. [https://www.github.com GitHub] is an website that helps manage Git Projects in a visual way. As owner of a project you can change the code and compare different versions. As a user of the project you can contribute by making a Pull Requests. A pull request is a request to the owner to pull some code into the project. You&#039;re offering a piece of code (perhaps a solution for a bug) and asking if the Project owner would like to use it. If the owner likes it, he can merge (add) it to his project.&lt;br /&gt;
&lt;br /&gt;
Joomla! uses GitHub and Git to maintain its code. Everyone can contribute Joomla! software. The URL to the Joomla! CMS Project on GitHub is: https://github.com/joomla/joomla-cms&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Getting Started =&lt;br /&gt;
== Sign up on GitHub and install Git ==&lt;br /&gt;
First, you will need to register at [http://www.github.com GitHub]. It&#039;s free and easy to do. Just follow the provided steps.&lt;br /&gt;
&lt;br /&gt;
One we are signed up, we need to install Git. The latest version of Git can be found on http://git-scm.com. Download and open the installer. Git is an CLI (Command Line Interface) program. At the start this can be confusing and a bit scary but this document will lead you through the process.&lt;br /&gt;
&lt;br /&gt;
If you&#039;re not an advanced user, just run the installer and press the &amp;quot;next&amp;quot; buttons until the program is installed. Git won&#039;t damage your system. Later you can remove it just like any other program if you like.&lt;br /&gt;
&lt;br /&gt;
Once we installed Git, we open the program called &amp;quot;Git Bash.&amp;quot; A command line will be opened. We&#039;re going to tell Git our name and email address. Git will use this information when we contribute to a project.&lt;br /&gt;
With the following commands we give Git that information:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git config --global user.name &amp;quot;Your name&amp;quot;&lt;br /&gt;
git config --global user.email youremail@mail.com&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the above commands, and all other commands given in this documentation, each line is a new command. So you type the fist line, press enter and then type the second line and press enter.&lt;br /&gt;
&lt;br /&gt;
We are now ready to use Git and go farther with setting up our test installation.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Setting up a test installation=&lt;br /&gt;
For our test installation we need a Web server program so that we can install and run Joomla! on our computer. There are a lot of programs that can do that such as [https://www.mamp.info/ MAMP] and [https://www.apachefriends.org/ XAMPP]. Download an install one of them.&lt;br /&gt;
&lt;br /&gt;
After the installation of such a program (I use MAMP in this documentation), we going to install the latest version of Joomla!. In our case, the latest version of Joomla! is not the last stable release. The last version of Joomla! is the staging branch on GitHub.&lt;br /&gt;
First, let me explain a little bit more about GitHub.&lt;br /&gt;
&lt;br /&gt;
== Fork and Clone Joomla! ==&lt;br /&gt;
On GitHub you can find projects, so called Repositories. Inside a project you might find several versions. Such a version is called a Branch. Joomla! has the following branches:&lt;br /&gt;
* &#039;&#039;&#039;Staging:&#039;&#039;&#039; This branch contains the latest bug fixes and new features of Joomla!&lt;br /&gt;
* &#039;&#039;&#039;Master:&#039;&#039;&#039; This branch is the current stable version of Joomla!&lt;br /&gt;
* &#039;&#039;&#039;3.5-dev&#039;&#039;&#039; This branch contains the files for Joomla! 3.5, which is not stable at this writing.&lt;br /&gt;
&lt;br /&gt;
On our test location we going to use the &#039;&#039;&#039;Staging&#039;&#039;&#039; branch but if we should use this branch directly we have problem. We cannot modify this branch because we are not the owner of it.&lt;br /&gt;
We are going to make a copy of it. On GitHub this is called a Fork. We are the owner of that copy so we can modify it. After modifying we compare our fork with the original project. Then we can make a Pull Request for the changes we&#039;ve made. More about that later.&lt;br /&gt;
You can Fork a branch by pressing the Fork button on the [https://github.com/joomla/joomla-cms Joomla! CMS Github Repository]. This button is located at the right top of the page.&lt;br /&gt;
[[File:Github-fork-button.png|none]]&lt;br /&gt;
&lt;br /&gt;
After forking, we are going to install Joomla! on our local Web server. Go to the folder were you can run files on you Web server. Most of the program use a folder called &amp;lt;tt&amp;gt;htdocs&amp;lt;/tt&amp;gt;. Once we are inside that folder, press the right mouse button an click on: &amp;quot;Git Bash Here&amp;quot;. The command line will open for this location.&lt;br /&gt;
&lt;br /&gt;
Type the following command to download the files from your Fork of the Joomla! CMS to your computer. Please replace &amp;lt;i&amp;gt;username&amp;lt;/i&amp;gt; with the username you are using on GitHub.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git clone https://github.com/username/joomla-cms.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For all commands given in this documentation, you have to open Git via the above described steps. Please remember that for other commands in this documentation. &lt;br /&gt;
&lt;br /&gt;
Once Git is ready, open your browser and go to the installation on your localhost. Usually the URL is something like: &amp;lt;tt&amp;gt;http://localhost/joomla-cms&amp;lt;/tt&amp;gt;. You will now see the default Joomla! installation process. &lt;br /&gt;
&lt;br /&gt;
== Install Joomla! ==&lt;br /&gt;
The installation of Joomla! for our local test installation is almost the same as a regular installation. There are a two little differences.&lt;br /&gt;
&lt;br /&gt;
For the database settings, the password and username are default. Most often the username is &amp;lt;tt&amp;gt;root&amp;lt;/tt&amp;gt; and the password is also &amp;lt;tt&amp;gt;root&amp;lt;/tt&amp;gt; or there is no password. If you still can&#039;t connect to the database, look in the manual for your local Web server for the username and password.&lt;br /&gt;
&lt;br /&gt;
The last difference is the final step of the installation. Normally we must delete the installation folder to go further to the back-end or front-end of Joomla!. For a test installation we can skip this part and go directly to the back-end or front-end. Don&#039;t remove the installation folder. It can be very useful when we have to install Joomla again.&lt;br /&gt;
&lt;br /&gt;
=Make Your Changes=&lt;br /&gt;
Now it is time to made our file changes to Joomla!. All changes we make will be registered and monitored by Git. At any moment you can type the command &amp;lt;tt&amp;gt;git status&amp;lt;/tt&amp;gt; to see which files are modified or untracked. Untracked means that the file at that location is new for Git.&lt;br /&gt;
&lt;br /&gt;
If you made a mistake or you would like to restore a file, use this command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git checkout path/to/file&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you like to remove all changes you made, use the following commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git checkout .&lt;br /&gt;
git clean -f -d&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The first command resets all files. The second command removes untracked files and folders.&lt;br /&gt;
&lt;br /&gt;
==Publish Our Changes on GitHub==&lt;br /&gt;
&lt;br /&gt;
=Push the Change to the Fork=&lt;br /&gt;
After making our changes, we have to upload our changes to our repository on GitHub. After that, we can make a pull request with our changes.&lt;br /&gt;
&lt;br /&gt;
Uploading changes is called &amp;lt;tt&amp;gt;push&amp;lt;/tt&amp;gt; in Git terms. Before we can do that, we have to do something very important. We must create a new branch for our changes. (A branch is a version of our project, remember?) If we don&#039;t do that and made our change directly to the staging branch, the first time there won&#039;t be a problem. But if we made changes for the second time, and the change we made the first time are not merged yet, all these changes will registered too as new changes.&lt;br /&gt;
&lt;br /&gt;
So the first command we are going to run will create a new branch. It will prevent the above described problem.&lt;br /&gt;
Replace name-new-branch with the name of the new branch. This name must be short, and can only contain lower case letters and numbers. Do &#039;&#039;&#039;NOT&#039;&#039;&#039; use spaces. Instead of spaces, use - (minus).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git checkout -b name-new-branch&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The next command tells git that all made changes are good, and are ready to commit.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git add --all&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The following command adds our change to the branch. Please replace the message with a short description of your changes. This description will be the title of the pull request we are going to make.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git commit -m &amp;quot;description&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The final command will push (upload) the changes to our fork. Please replace name-new-branch with the name of the branch you made a few steps above.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git push origin name-new-branch&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Compare Forks and Make a Pull Request==&lt;br /&gt;
After pushing our change to GitHub, go to your fork of the Joomla! CMS.&lt;br /&gt;
&lt;br /&gt;
=Extra information=&lt;br /&gt;
Because the staging version of Joomla! can change any moment, it is very useful to have the possibility for keeping our fork up-to-date. We can do that by adding a remote to our forked project:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git remote add upstream https://github.com/joomla/joomla-cms.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We now added a remote called &amp;quot;upstream&amp;quot;. With the following command, Git will search for new contribution (commits) in the staging branch we don&#039;t have in our fork. If it found some, it will add them to our fork:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git pull upstream staging&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The changes are now only made on our local fork. To upload them to GitHub use the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git push&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category: Bug Squad]]&lt;br /&gt;
[[Category: Development]]&lt;br /&gt;
[[Category:GitHub]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Juliano.freitas</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Translations:Working_with_git_and_github/Page_display_title/pt-br&amp;diff=404061</id>
		<title>Translations:Working with git and github/Page display title/pt-br</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Translations:Working_with_git_and_github/Page_display_title/pt-br&amp;diff=404061"/>
		<updated>2017-05-14T02:52:44Z</updated>

		<summary type="html">&lt;p&gt;Juliano.freitas: Created page with &amp;quot;Trabalhando com git e github&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Trabalhando com git e github&lt;/div&gt;</summary>
		<author><name>Juliano.freitas</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Adding_a_new_user/pt-br&amp;diff=403692</id>
		<title>Adding a new user/pt-br</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Adding_a_new_user/pt-br&amp;diff=403692"/>
		<updated>2017-05-12T03:03:52Z</updated>

		<summary type="html">&lt;p&gt;Juliano.freitas: Created page with &amp;quot;Tutoriais Gerenciador de Usuários&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&amp;lt;languages /&amp;gt;&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Adicionando um novo usuário&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Um usuário é uma pessoa (ou grupo de pessoas) que se autenticou fornecendo os dados de registro solicitados. Normalmente, você cria contas de usuário para conceder acesso a partes exclusivas de seu site ou permitir que seus visitantes exibam seu conteúdo.&lt;br /&gt;
&lt;br /&gt;
Para criar um novo usuário, você terá que seguir os seguintes passos:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;1. Faça login no painel de administração do seu site web Joomla!&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Abra uma nova janela do navegador e digite o URL correspondente. Isso seria algo como http://www.nome_do_seu_site_aqui.com/administrator&lt;br /&gt;
Assim que a página for carregada, inicie sessão como administrador do site. Atente-se que outras contas poderão não ter os direitos de adicionar novos usuários, dependendo do nível de acesso concedido. Mais sobre os níveis de acesso será mostrado mais adiante neste tutorial.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;2. Abra o Gerenciador de Usuários&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
After logging in, go to the Site menu item, situated in the upper-left corner, right under the green bar separating the site header from the content area. In the opening menu select User Manager.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;3. Add the new user&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
On the newly opened page, press the New button in the upper-right corner [[Image:Icon-32-new.gif]]. This will open the new user panel where you can enter the user data.&lt;br /&gt;
Now, let&#039;s fill in the user details:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Name&#039;&#039;&#039; - this field will contain the user&#039;s real name, like John Smith&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Username&#039;&#039;&#039; - this would be the user or login name to be used to log in to the site, like jsmith or yellowbird67&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New password&#039;&#039;&#039; - here you can enter a temporary password that you will send to the user so it can log in for the first time. The user will be able to change this later to something that is easy to remember. A good rule of thumb for choosing a safe password is to use small letters together with capitals and numbers while having a minimal length of six characters. A good example would be p9HWc0Ak.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Verify password&#039;&#039;&#039; - here you have to reenter the previously choosen password just to make sure there was no typo in the first one&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Group&#039;&#039;&#039; - choosing the correct group to assign your user to may be crucial for your site&#039;s security so pay attention when setting this up! There is no golden-rule for choosing the user group except maybe for this one: &amp;quot;Keep the rights as low as posible&amp;quot;. Normally, you wouldn&#039;t want to assign the Super Administrator or even Administrator role to just anyone. The Manager role is somewhat weaker but still strong enough to compromise your site&#039;s content. In 99% of the cases you will assign your users to the &amp;quot;Registered&amp;quot; group, thus only allowing them front-end access. In case you need more granularity of the access levels you might consider a third-party extension from the Extensions directory.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Block user&#039;&#039;&#039; - here you have the possibility to disable a previously created user account without deleting it. This option might be useful for banning users until they (or you) take a certain action. Simply set this option to Yes to disable the account.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Receive System E-mails&#039;&#039;&#039; - Set if the user should receive system relevant e-mails. If the user is an Administrator or Super Administrator you probably want to set this option to &amp;quot;No&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Next, set the parameters:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Back-end Language&#039;&#039;&#039; - this parameter sets the administration panel&#039;s language&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Front-end Language&#039;&#039;&#039; - this parameter sets the website&#039;s panel&#039;s language when the user is logged in&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;User Editor&#039;&#039;&#039; - this parameter specifies which one of the built-in editors the user will be using while editing the information on the site&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Help Site&#039;&#039;&#039; - here you can specify the location of the help files. These can be read from the files installed on your server (Local) or from the the Joomla! site (help.joomla.org). I usually prefer setting this option to help.joomla.org as this information tends to be more up to date.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Time Zone&#039;&#039;&#039; - well, this speaks for itself. Here you can set the user&#039;s time zone. This information will be used wherever time and date is displayed to the logged in user.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Contact Information field will show the user&#039;s contact data if there is a corresponding entry in the Contact Manager.&lt;br /&gt;
&lt;br /&gt;
Once you are done entering all the information above, click the Save button (the floppy disk icon in the upper-right corner). &lt;br /&gt;
&lt;br /&gt;
If you have enabled the user (by setting the Block User field to No), it is now able to log in using the usename and login you have set.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Disabling/Banning a user&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
In order to disable or ban an existing user - not allowing them to login to the site - you will have to log in to the administration panel and open the User Manager from the Site menu -&amp;gt; User Manager. In the user list select the corresponding user by clicking on its name. In the newly opened panel, set the Block User option to Yes and press the Save button (the floppy disk icon in the upper-right corner).&lt;br /&gt;
&lt;br /&gt;
Please note that this method will not delete the user account but will only disable it. You can always re-enable it by setting the Block User option to No.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Deleting a user&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
In order to delete a user from your database, log in to he administration panel as described above and choose Site -&amp;gt; User Manager from the top menu. On the opening page, select the checkbox to the left of the user&#039;s name you would like to remove and press the Delete button in the upper-right corner.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Tutorials/pt-br|Tutoriais]]&lt;br /&gt;
[[Category:User Management/pt-br|Gerenciador de Usuários]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Juliano.freitas</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Translations:Adding_a_new_user/33/pt-br&amp;diff=403691</id>
		<title>Translations:Adding a new user/33/pt-br</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Translations:Adding_a_new_user/33/pt-br&amp;diff=403691"/>
		<updated>2017-05-12T03:03:52Z</updated>

		<summary type="html">&lt;p&gt;Juliano.freitas: Created page with &amp;quot;Tutoriais Gerenciador de Usuários&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Tutorials/pt-br|Tutoriais]]&lt;br /&gt;
[[Category:User Management/pt-br|Gerenciador de Usuários]]&lt;/div&gt;</summary>
		<author><name>Juliano.freitas</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Adding_a_new_user/pt-br&amp;diff=403690</id>
		<title>Adding a new user/pt-br</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Adding_a_new_user/pt-br&amp;diff=403690"/>
		<updated>2017-05-12T03:03:29Z</updated>

		<summary type="html">&lt;p&gt;Juliano.freitas: Created page with &amp;quot;&amp;#039;&amp;#039;&amp;#039;2. Abra o Gerenciador de Usuários&amp;#039;&amp;#039;&amp;#039;&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&amp;lt;languages /&amp;gt;&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Adicionando um novo usuário&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Um usuário é uma pessoa (ou grupo de pessoas) que se autenticou fornecendo os dados de registro solicitados. Normalmente, você cria contas de usuário para conceder acesso a partes exclusivas de seu site ou permitir que seus visitantes exibam seu conteúdo.&lt;br /&gt;
&lt;br /&gt;
Para criar um novo usuário, você terá que seguir os seguintes passos:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;1. Faça login no painel de administração do seu site web Joomla!&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Abra uma nova janela do navegador e digite o URL correspondente. Isso seria algo como http://www.nome_do_seu_site_aqui.com/administrator&lt;br /&gt;
Assim que a página for carregada, inicie sessão como administrador do site. Atente-se que outras contas poderão não ter os direitos de adicionar novos usuários, dependendo do nível de acesso concedido. Mais sobre os níveis de acesso será mostrado mais adiante neste tutorial.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;2. Abra o Gerenciador de Usuários&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
After logging in, go to the Site menu item, situated in the upper-left corner, right under the green bar separating the site header from the content area. In the opening menu select User Manager.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;3. Add the new user&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
On the newly opened page, press the New button in the upper-right corner [[Image:Icon-32-new.gif]]. This will open the new user panel where you can enter the user data.&lt;br /&gt;
Now, let&#039;s fill in the user details:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Name&#039;&#039;&#039; - this field will contain the user&#039;s real name, like John Smith&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Username&#039;&#039;&#039; - this would be the user or login name to be used to log in to the site, like jsmith or yellowbird67&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New password&#039;&#039;&#039; - here you can enter a temporary password that you will send to the user so it can log in for the first time. The user will be able to change this later to something that is easy to remember. A good rule of thumb for choosing a safe password is to use small letters together with capitals and numbers while having a minimal length of six characters. A good example would be p9HWc0Ak.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Verify password&#039;&#039;&#039; - here you have to reenter the previously choosen password just to make sure there was no typo in the first one&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Group&#039;&#039;&#039; - choosing the correct group to assign your user to may be crucial for your site&#039;s security so pay attention when setting this up! There is no golden-rule for choosing the user group except maybe for this one: &amp;quot;Keep the rights as low as posible&amp;quot;. Normally, you wouldn&#039;t want to assign the Super Administrator or even Administrator role to just anyone. The Manager role is somewhat weaker but still strong enough to compromise your site&#039;s content. In 99% of the cases you will assign your users to the &amp;quot;Registered&amp;quot; group, thus only allowing them front-end access. In case you need more granularity of the access levels you might consider a third-party extension from the Extensions directory.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Block user&#039;&#039;&#039; - here you have the possibility to disable a previously created user account without deleting it. This option might be useful for banning users until they (or you) take a certain action. Simply set this option to Yes to disable the account.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Receive System E-mails&#039;&#039;&#039; - Set if the user should receive system relevant e-mails. If the user is an Administrator or Super Administrator you probably want to set this option to &amp;quot;No&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Next, set the parameters:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Back-end Language&#039;&#039;&#039; - this parameter sets the administration panel&#039;s language&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Front-end Language&#039;&#039;&#039; - this parameter sets the website&#039;s panel&#039;s language when the user is logged in&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;User Editor&#039;&#039;&#039; - this parameter specifies which one of the built-in editors the user will be using while editing the information on the site&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Help Site&#039;&#039;&#039; - here you can specify the location of the help files. These can be read from the files installed on your server (Local) or from the the Joomla! site (help.joomla.org). I usually prefer setting this option to help.joomla.org as this information tends to be more up to date.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Time Zone&#039;&#039;&#039; - well, this speaks for itself. Here you can set the user&#039;s time zone. This information will be used wherever time and date is displayed to the logged in user.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Contact Information field will show the user&#039;s contact data if there is a corresponding entry in the Contact Manager.&lt;br /&gt;
&lt;br /&gt;
Once you are done entering all the information above, click the Save button (the floppy disk icon in the upper-right corner). &lt;br /&gt;
&lt;br /&gt;
If you have enabled the user (by setting the Block User field to No), it is now able to log in using the usename and login you have set.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Disabling/Banning a user&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
In order to disable or ban an existing user - not allowing them to login to the site - you will have to log in to the administration panel and open the User Manager from the Site menu -&amp;gt; User Manager. In the user list select the corresponding user by clicking on its name. In the newly opened panel, set the Block User option to Yes and press the Save button (the floppy disk icon in the upper-right corner).&lt;br /&gt;
&lt;br /&gt;
Please note that this method will not delete the user account but will only disable it. You can always re-enable it by setting the Block User option to No.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Deleting a user&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
In order to delete a user from your database, log in to he administration panel as described above and choose Site -&amp;gt; User Manager from the top menu. On the opening page, select the checkbox to the left of the user&#039;s name you would like to remove and press the Delete button in the upper-right corner.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Tutorials]]&lt;br /&gt;
[[Category:User Management]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Juliano.freitas</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Translations:Adding_a_new_user/7/pt-br&amp;diff=403689</id>
		<title>Translations:Adding a new user/7/pt-br</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Translations:Adding_a_new_user/7/pt-br&amp;diff=403689"/>
		<updated>2017-05-12T03:03:28Z</updated>

		<summary type="html">&lt;p&gt;Juliano.freitas: Created page with &amp;quot;&amp;#039;&amp;#039;&amp;#039;2. Abra o Gerenciador de Usuários&amp;#039;&amp;#039;&amp;#039;&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;2. Abra o Gerenciador de Usuários&#039;&#039;&#039;&lt;/div&gt;</summary>
		<author><name>Juliano.freitas</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Adding_a_new_user/pt-br&amp;diff=403688</id>
		<title>Adding a new user/pt-br</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Adding_a_new_user/pt-br&amp;diff=403688"/>
		<updated>2017-05-12T03:03:14Z</updated>

		<summary type="html">&lt;p&gt;Juliano.freitas: Created page with &amp;quot;Assim que a página for carregada, inicie sessão como administrador do site. Atente-se que outras contas poderão não ter os direitos de adicionar novos usuários, dependend...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&amp;lt;languages /&amp;gt;&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Adicionando um novo usuário&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Um usuário é uma pessoa (ou grupo de pessoas) que se autenticou fornecendo os dados de registro solicitados. Normalmente, você cria contas de usuário para conceder acesso a partes exclusivas de seu site ou permitir que seus visitantes exibam seu conteúdo.&lt;br /&gt;
&lt;br /&gt;
Para criar um novo usuário, você terá que seguir os seguintes passos:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;1. Faça login no painel de administração do seu site web Joomla!&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Abra uma nova janela do navegador e digite o URL correspondente. Isso seria algo como http://www.nome_do_seu_site_aqui.com/administrator&lt;br /&gt;
Assim que a página for carregada, inicie sessão como administrador do site. Atente-se que outras contas poderão não ter os direitos de adicionar novos usuários, dependendo do nível de acesso concedido. Mais sobre os níveis de acesso será mostrado mais adiante neste tutorial.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;2. Open the User Manager&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
After logging in, go to the Site menu item, situated in the upper-left corner, right under the green bar separating the site header from the content area. In the opening menu select User Manager.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;3. Add the new user&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
On the newly opened page, press the New button in the upper-right corner [[Image:Icon-32-new.gif]]. This will open the new user panel where you can enter the user data.&lt;br /&gt;
Now, let&#039;s fill in the user details:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Name&#039;&#039;&#039; - this field will contain the user&#039;s real name, like John Smith&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Username&#039;&#039;&#039; - this would be the user or login name to be used to log in to the site, like jsmith or yellowbird67&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New password&#039;&#039;&#039; - here you can enter a temporary password that you will send to the user so it can log in for the first time. The user will be able to change this later to something that is easy to remember. A good rule of thumb for choosing a safe password is to use small letters together with capitals and numbers while having a minimal length of six characters. A good example would be p9HWc0Ak.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Verify password&#039;&#039;&#039; - here you have to reenter the previously choosen password just to make sure there was no typo in the first one&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Group&#039;&#039;&#039; - choosing the correct group to assign your user to may be crucial for your site&#039;s security so pay attention when setting this up! There is no golden-rule for choosing the user group except maybe for this one: &amp;quot;Keep the rights as low as posible&amp;quot;. Normally, you wouldn&#039;t want to assign the Super Administrator or even Administrator role to just anyone. The Manager role is somewhat weaker but still strong enough to compromise your site&#039;s content. In 99% of the cases you will assign your users to the &amp;quot;Registered&amp;quot; group, thus only allowing them front-end access. In case you need more granularity of the access levels you might consider a third-party extension from the Extensions directory.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Block user&#039;&#039;&#039; - here you have the possibility to disable a previously created user account without deleting it. This option might be useful for banning users until they (or you) take a certain action. Simply set this option to Yes to disable the account.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Receive System E-mails&#039;&#039;&#039; - Set if the user should receive system relevant e-mails. If the user is an Administrator or Super Administrator you probably want to set this option to &amp;quot;No&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Next, set the parameters:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Back-end Language&#039;&#039;&#039; - this parameter sets the administration panel&#039;s language&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Front-end Language&#039;&#039;&#039; - this parameter sets the website&#039;s panel&#039;s language when the user is logged in&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;User Editor&#039;&#039;&#039; - this parameter specifies which one of the built-in editors the user will be using while editing the information on the site&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Help Site&#039;&#039;&#039; - here you can specify the location of the help files. These can be read from the files installed on your server (Local) or from the the Joomla! site (help.joomla.org). I usually prefer setting this option to help.joomla.org as this information tends to be more up to date.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Time Zone&#039;&#039;&#039; - well, this speaks for itself. Here you can set the user&#039;s time zone. This information will be used wherever time and date is displayed to the logged in user.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Contact Information field will show the user&#039;s contact data if there is a corresponding entry in the Contact Manager.&lt;br /&gt;
&lt;br /&gt;
Once you are done entering all the information above, click the Save button (the floppy disk icon in the upper-right corner). &lt;br /&gt;
&lt;br /&gt;
If you have enabled the user (by setting the Block User field to No), it is now able to log in using the usename and login you have set.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Disabling/Banning a user&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
In order to disable or ban an existing user - not allowing them to login to the site - you will have to log in to the administration panel and open the User Manager from the Site menu -&amp;gt; User Manager. In the user list select the corresponding user by clicking on its name. In the newly opened panel, set the Block User option to Yes and press the Save button (the floppy disk icon in the upper-right corner).&lt;br /&gt;
&lt;br /&gt;
Please note that this method will not delete the user account but will only disable it. You can always re-enable it by setting the Block User option to No.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Deleting a user&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
In order to delete a user from your database, log in to he administration panel as described above and choose Site -&amp;gt; User Manager from the top menu. On the opening page, select the checkbox to the left of the user&#039;s name you would like to remove and press the Delete button in the upper-right corner.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Tutorials]]&lt;br /&gt;
[[Category:User Management]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Juliano.freitas</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Translations:Adding_a_new_user/6/pt-br&amp;diff=403687</id>
		<title>Translations:Adding a new user/6/pt-br</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Translations:Adding_a_new_user/6/pt-br&amp;diff=403687"/>
		<updated>2017-05-12T03:03:14Z</updated>

		<summary type="html">&lt;p&gt;Juliano.freitas: Created page with &amp;quot;Assim que a página for carregada, inicie sessão como administrador do site. Atente-se que outras contas poderão não ter os direitos de adicionar novos usuários, dependend...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Assim que a página for carregada, inicie sessão como administrador do site. Atente-se que outras contas poderão não ter os direitos de adicionar novos usuários, dependendo do nível de acesso concedido. Mais sobre os níveis de acesso será mostrado mais adiante neste tutorial.&lt;/div&gt;</summary>
		<author><name>Juliano.freitas</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Adding_a_new_user/pt-br&amp;diff=403686</id>
		<title>Adding a new user/pt-br</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Adding_a_new_user/pt-br&amp;diff=403686"/>
		<updated>2017-05-12T03:01:47Z</updated>

		<summary type="html">&lt;p&gt;Juliano.freitas: Created page with &amp;quot;Abra uma nova janela do navegador e digite o URL correspondente. Isso seria algo como http://www.nome_do_seu_site_aqui.com/administrator&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&amp;lt;languages /&amp;gt;&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Adicionando um novo usuário&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Um usuário é uma pessoa (ou grupo de pessoas) que se autenticou fornecendo os dados de registro solicitados. Normalmente, você cria contas de usuário para conceder acesso a partes exclusivas de seu site ou permitir que seus visitantes exibam seu conteúdo.&lt;br /&gt;
&lt;br /&gt;
Para criar um novo usuário, você terá que seguir os seguintes passos:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;1. Faça login no painel de administração do seu site web Joomla!&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Abra uma nova janela do navegador e digite o URL correspondente. Isso seria algo como http://www.nome_do_seu_site_aqui.com/administrator&lt;br /&gt;
Once the page is loaded, log yourself in as the site administrator. Please note that other accounts might not have the rights to add new users, depending on the granted access level. More about the access levels later in this tutorial.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;2. Open the User Manager&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
After logging in, go to the Site menu item, situated in the upper-left corner, right under the green bar separating the site header from the content area. In the opening menu select User Manager.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;3. Add the new user&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
On the newly opened page, press the New button in the upper-right corner [[Image:Icon-32-new.gif]]. This will open the new user panel where you can enter the user data.&lt;br /&gt;
Now, let&#039;s fill in the user details:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Name&#039;&#039;&#039; - this field will contain the user&#039;s real name, like John Smith&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Username&#039;&#039;&#039; - this would be the user or login name to be used to log in to the site, like jsmith or yellowbird67&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New password&#039;&#039;&#039; - here you can enter a temporary password that you will send to the user so it can log in for the first time. The user will be able to change this later to something that is easy to remember. A good rule of thumb for choosing a safe password is to use small letters together with capitals and numbers while having a minimal length of six characters. A good example would be p9HWc0Ak.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Verify password&#039;&#039;&#039; - here you have to reenter the previously choosen password just to make sure there was no typo in the first one&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Group&#039;&#039;&#039; - choosing the correct group to assign your user to may be crucial for your site&#039;s security so pay attention when setting this up! There is no golden-rule for choosing the user group except maybe for this one: &amp;quot;Keep the rights as low as posible&amp;quot;. Normally, you wouldn&#039;t want to assign the Super Administrator or even Administrator role to just anyone. The Manager role is somewhat weaker but still strong enough to compromise your site&#039;s content. In 99% of the cases you will assign your users to the &amp;quot;Registered&amp;quot; group, thus only allowing them front-end access. In case you need more granularity of the access levels you might consider a third-party extension from the Extensions directory.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Block user&#039;&#039;&#039; - here you have the possibility to disable a previously created user account without deleting it. This option might be useful for banning users until they (or you) take a certain action. Simply set this option to Yes to disable the account.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Receive System E-mails&#039;&#039;&#039; - Set if the user should receive system relevant e-mails. If the user is an Administrator or Super Administrator you probably want to set this option to &amp;quot;No&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Next, set the parameters:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Back-end Language&#039;&#039;&#039; - this parameter sets the administration panel&#039;s language&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Front-end Language&#039;&#039;&#039; - this parameter sets the website&#039;s panel&#039;s language when the user is logged in&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;User Editor&#039;&#039;&#039; - this parameter specifies which one of the built-in editors the user will be using while editing the information on the site&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Help Site&#039;&#039;&#039; - here you can specify the location of the help files. These can be read from the files installed on your server (Local) or from the the Joomla! site (help.joomla.org). I usually prefer setting this option to help.joomla.org as this information tends to be more up to date.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Time Zone&#039;&#039;&#039; - well, this speaks for itself. Here you can set the user&#039;s time zone. This information will be used wherever time and date is displayed to the logged in user.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Contact Information field will show the user&#039;s contact data if there is a corresponding entry in the Contact Manager.&lt;br /&gt;
&lt;br /&gt;
Once you are done entering all the information above, click the Save button (the floppy disk icon in the upper-right corner). &lt;br /&gt;
&lt;br /&gt;
If you have enabled the user (by setting the Block User field to No), it is now able to log in using the usename and login you have set.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Disabling/Banning a user&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
In order to disable or ban an existing user - not allowing them to login to the site - you will have to log in to the administration panel and open the User Manager from the Site menu -&amp;gt; User Manager. In the user list select the corresponding user by clicking on its name. In the newly opened panel, set the Block User option to Yes and press the Save button (the floppy disk icon in the upper-right corner).&lt;br /&gt;
&lt;br /&gt;
Please note that this method will not delete the user account but will only disable it. You can always re-enable it by setting the Block User option to No.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Deleting a user&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
In order to delete a user from your database, log in to he administration panel as described above and choose Site -&amp;gt; User Manager from the top menu. On the opening page, select the checkbox to the left of the user&#039;s name you would like to remove and press the Delete button in the upper-right corner.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Tutorials]]&lt;br /&gt;
[[Category:User Management]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Juliano.freitas</name></author>
	</entry>
</feed>