Skip to content

Completed Filipino Translation - 1682 total translated words #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Feb 9, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
119 changes: 53 additions & 66 deletions book/02-git-basics/sections/remotes.asc
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
[[_remote_repos]]
=== Working with Remotes
=== Paggawa gamit ang mga Remote

To be able to collaborate on any Git project, you need to know how to manage your remote repositories.
Remote repositories are versions of your project that are hosted on the Internet or network somewhere.
You can have several of them, each of which generally is either read-only or read/write for you.
Collaborating with others involves managing these remote repositories and pushing and pulling data to and from them when you need to share work.
Managing remote repositories includes knowing how to add remote repositories, remove remotes that are no longer valid, manage various remote branches and define them as being tracked or not, and more.
In this section, we'll cover some of these remote-management skills.
Upang magawa ang pakikipagtutulungan sa anumang proyekto sa Git, kailangan mong malaman kung paano papangasiwaan ang iyong mga remote na repositoryo.
Ang mga naka-remote na repositoryo ay mga bersyon ng iyong proyekto na naka-host sa Internet o sa saan mang lugar sa network.
Maaari kang magkaroon iilan sa kanila, sa pangkalahatan bawat isa ay maaaring read-only o read/write para sayo.
Ang pakikipagtulungan sa iba ay naglalakip sa pamamahala sa naka-remote na mga repositoryo na ito at pag-push at pag-pull ng datos sa patutunguhan at sa pinanggalingan nila kapag kailangan mong magbahagi ng trabaho.
Ang pagpapangasiwa ng naka-remote na mga repositoryo ay naglakip nang kaalaman kung paano magdagdag ng naka-remote na mga repositoryo, mag-alis sa mga naka-remote na hindi na magagamit, mangangasiwa ng iba't ibang mga sanga at tukuyin ang mga ito kung sinusubaybayan o hindi, at marami pang iba.
Sa seksyon na ito, tatalakayin natin ang iilan sa mga kakayahan sa pagpapangasiwa ng naka-remote na repositoryo.

[NOTE]
.Remote repositories can be on your local machine.
[TANDAAN]
.Ang naka-remote na mga repositoryo ay maaaring nasa iyong lokal na makina.
====
It is entirely possible that you can be working with a ``remote'' repository that is, in fact, on the same host you are.
The word ``remote'' does not necessarily imply that the repository is somewhere else on the network or Internet, only that it is elsewhere.
Working with such a remote repository would still involve all the standard pushing, pulling and fetching operations as with any other remote.
Ito ay posible na ikaw ay nagtatrabaho sa isang ``naka-remote'' na repositoryo na iyan, at sa katunayan, nasa parehong host kung saan nandoon ka.
Ang salitang ``remote'' ay hindi kinakailangan nagpapahiwatig na ang repositoryo ay nasa ibang lugar sa network o Internet, tanging ito ay nasa ibang lugar lang.
Ang pagtrabaho sa isang naka-remote na repositoryo gaya nito ay magkakaroon pa rin sa lahat ng karaniwang pag-push, pag-pull at pag-fetch ng mga operasyon tulad ng sa ibang anumang nakaremote.
====

==== Showing Your Remotes
==== Pagpapakita ng iyong mga Remote

To see which remote servers you have configured, you can run the `git remote` command.(((git commands, remote)))
It lists the shortnames of each remote handle you've specified.
If you've cloned your repository, you should at least see `origin` -- that is the default name Git gives to the server you cloned from:
Upang makita kung aling remote na mga server ang iyong na-configure, maaari mong patakbuhin ang `git remote` na utos.(((git commands, remote)))
Inilista nito ang mga alyas sa bawat remote na handle na iyong itinukoy.
Kung na-clone mo ang iyong repositoryo, dapat mong makita ang `origin` -- iyon ang naka-default na pangalan na ibinigay ng Git sa server na pinagmulan ng iyong naka-clone na repositoryo:

[source,console]
----
Expand All @@ -36,7 +36,7 @@ $ git remote
origin
----

You can also specify `-v`, which shows you the URLs that Git has stored for the shortname to be used when reading and writing to that remote:
Maaari mo ring ilagay ang `-v`, na nagpapakita sa iyo sa mga URL na iniimbak ng Git na alyas para magagamit kapag nagbabasa at nagsusulat sa remote na iyon:

[source,console]
----
Expand All @@ -45,8 +45,8 @@ origin https://github.com/schacon/ticgit (fetch)
origin https://github.com/schacon/ticgit (push)
----

If you have more than one remote, the command lists them all.
For example, a repository with multiple remotes for working with several collaborators might look something like this.
Kung mayroon kang higit pa sa isang remote, ang utos ay naglilista sa kanilang lahat.
Bilang halimbawa, ang isang repositoryo na may maramihang mga remote para sa pakikipagtulungan sa mga iilang mga taga-ambag ay maaaring maging tulad nito.

[source,console]
----
Expand All @@ -64,16 +64,16 @@ origin [email protected]:mojombo/grit.git (fetch)
origin [email protected]:mojombo/grit.git (push)
----

This means we can pull contributions from any of these users pretty easily.
We may additionally have permission to push to one or more of these, though we can't tell that here.
Ang ibig sabihin nito ay maaari naming madaling i-pull ang mga kontribusyon mula sa sinumang mga gumagamit
Maaari nating idagdag ang mga pahintulot na mag-push sa isa o higit pa sa mga ito, bagaman hindi natin ito masasabi dito.

Notice that these remotes use a variety of protocols; we'll cover more about this in <<_git_on_the_server#_getting_git_on_a_server>>.
Kung mapansin mo ang mga remote na ito ay gumagamit ng napakaraming mga protokol; tatalakayin pa natin ito nang malaliman sa <<_git_on_the_server#_getting_git_on_a_server>>.

==== Adding Remote Repositories
==== Pagdagdag ng Remote na mga Repositoryo

We've mentioned and given some demonstrations of how the `git clone` command implicitly adds the `origin` remote for you.
Here's how to add a new remote explicitly.(((git commands, remote)))
To add a new remote Git repository as a shortname you can reference easily, run `git remote add <shortname> <url>`:
Nabanggit at ibinigay na namin ang ilang mga pagpapakita kung paano ang `git clone` na utos ay sadyang nagdagdag ng `origin` na remote para sa iyo.
Narito ang paraan kung papaano hayagang magdagdag ng isang bagong remote.(((git commands, remote)))
Para makadagdag ng bagong remote na repositoryo ng Git bilang isang alyas para madali mong magamit, patakbuhin ang `git remote add <shortname> <url>`:

[source,console]
----
Expand All @@ -87,8 +87,8 @@ pb https://github.com/paulboone/ticgit (fetch)
pb https://github.com/paulboone/ticgit (push)
----

Now you can use the string `pb` on the command line in lieu of the whole URL.
For example, if you want to fetch all the information that Paul has but that you don't yet have in your repository, you can run `git fetch pb`:
Ngayon maaari mo nang gamitin ang string `pb` sa command line sa halip ng buong URL.
Halimbawa, kung gusto mong kunin ang lahat ng impormasyon na mayroon si Pablo ngunit wala pa sa iyong repositoryo, maaari mong patakbuhin ang `git fetch pb`:

[source,console]
----
Expand All @@ -102,53 +102,45 @@ From https://github.com/paulboone/ticgit
* [new branch] ticgit -> pb/ticgit
----

Paul's master branch is now accessible locally as `pb/master` -- you can merge it into one of your branches, or you can check out a local branch at that point if you want to inspect it.
(We'll go over what branches are and how to use them in much more detail in <<_git_branching#_git_branching>>.)
Ang master branch ni Pablo ay magagamit na ngayon sa lokal bilang `pb/master` -- maaari mo itong i-merge sa isa sa iyong mga branch, o maaari mong suriin ang lokal na branch sa puntong iyon kung gusto mong siyasatin ito.
(Ating tatalakayin kung ano ang mga branch at kung paano gamitin ang mga ito na mas detalyado sa <<_git_branching#_git_branching>>.)

[[_fetching_and_pulling]]
==== Fetching and Pulling from Your Remotes
==== Pag-fetch at Pag-Pull mula sa iyong mga Remote

As you just saw, to get data from your remote projects, you can run:(((git commands, fetch)))
Tulad ng iyong nakikita, upang makakuha ng datos mula sa iyong remote na mga proyekto, maaari kang magtakbo:(((git commands, fetch)))

[source,console]
----
$ git fetch <remote>
----

The command goes out to that remote project and pulls down all the data from that remote project that you don't have yet.
After you do this, you should have references to all the branches from that remote, which you can merge in or inspect at any time.
Ang utos ay napupunta sa remote na proyekto na iyon at nagkuha sa lahat ng datos mula sa remote na proyekto na iyon na wala ka pa.
Pagkatapos mong gawin ito, mayroon ka ng mga reperensiya sa lahat ng mga branch mula sa remote na iyon, kung saan maaari mo itong i-merge o siyasatin sa anumang oras.

If you clone a repository, the command automatically adds that remote repository under the name ``origin''.
So, `git fetch origin` fetches any new work that has been pushed to that server since you cloned (or last fetched from) it.
It's important to note that the `git fetch` command only downloads the data to your local repository -- it doesn't automatically merge it with any of your work or modify what you're currently working on.
You have to merge it manually into your work when you're ready.
Kung mag-clone ka ng isang repositoryo, ang utos ay awtomatikong nagdagdag sa remote na repositoryo na iyon sa ilalim ng pangalan ``origin''. Kaya, ang `git fetch origin` ay kumukuha ng anumang bagong trabaho na nai-push sa server na iyon mula nang na-clone (o huling kang nag-fetch) nito. Mahalaga itong tandaan na ang `git fetch` na utos ay nagda-download lang ng mga datos sa iyong lokal na repositoryo -- ito ay hindi awtomatikong nag-merge sa anumang ginawa o binago mo na kasalukuyan mong ginawa. Kailangan mong i-merge ito ng mano-mano sa iyong trabaho kapag ikaw ay handa na.

If your current branch is set up to track a remote branch (see the next section and <<_git_branching#_git_branching>> for more information), you can use the `git pull` command to automatically fetch and then merge that remote branch into your current branch.(((git commands, pull)))
This may be an easier or more comfortable workflow for you; and by default, the `git clone` command automatically sets up your local master branch to track the remote master branch (or whatever the default branch is called) on the server you cloned from.
Running `git pull` generally fetches data from the server you originally cloned from and automatically tries to merge it into the code you're currently working on.
Kung ang iyong kasalukuyang branch ay naka-set up upang subaybayan ang remote na branch (tingnan ang susunod na seksyon at <<_git_branching#_git_branching>> para sa karagdagang impormasyon), maaari kang gumagamit ng `git pull` na utos upang awtomatikong mag-fetch at pagkatapos ay mag-merge sa remote na branch sa iyong kasalukuyang branch.(((git commands, pull)))
Ito ay maaaring maging mas madali o maginhawang proseso para sa iyo; at bilang default, ang `git clone` na utos ay awtomakong nag-setup sa iyong lokal na branch upang subaybayan ang remote na master branch (o anumang default na branch na tinatawag) sa server na naka-clone ka.
Ang pagpapatakbo ng `git pull` ay karaniwang kumukuha ng datos mula sa server na pinanggalingan ng iyong kopya ng repositoryo at awtomatikong nagsusubok na i-merge ito sa kasalukuyang tinatrabaho mo.

[[_pushing_remotes]]
==== Pushing to Your Remotes
==== Pagtulak sa iyong mga Remote

When you have your project at a point that you want to share, you have to push it upstream.
The command for this is simple: `git push <remote> <branch>`.(((git commands, push)))
If you want to push your master branch to your `origin` server (again, cloning generally sets up both of those names for you automatically), then you can run this to push any commits you've done back up to the server:
Kapag mayroon kang proyekto na gusto mong ibahagi sa isang punto, kailangan mong i-push ito pataas. Ang utos para dito ay simple lang: `git push <remote> <branch>`.(((git commands, push)))
Kung gusto mo i-push ang iyong master branch sa iyong `origin` sa server (sa uulitin, ang pag-clone ay awtomatikong nag-setup mga pangalan na iyon para sa iyo), pagkatapos ay maaari mo nang patakbuhin ito para i-push ang anumang mga commit na nagawa mo papunta sa server:

[source,console]
----
$ git push origin master
----

This command works only if you cloned from a server to which you have write access and if nobody has pushed in the meantime.
If you and someone else clone at the same time and they push upstream and then you push upstream, your push will rightly be rejected.
You'll have to fetch their work first and incorporate it into yours before you'll be allowed to push.
See <<_git_branching#_git_branching>> for more detailed information on how to push to remote servers.
Ang utos na ito ay gagana lang kung ikaw ay naka-clone mula sa isang server na kung saan meron kang pahintulot na magsulat at kung walang pang pansamantalang nag-push. Kung ikaw at sinumang nag-clone sa parehong oras at sila ay nag-push pataas at pagkatapos ikaw ay nag-push pataas, ang iyong pag-push ay hindi tatanggapin. Kailangan mo pang kunin ang kanilang trabaho at isama ito sa iyong nagawa bago ka pahintulotang mag-push. Tingnan ang <<_git_branching#_git_branching>> para sa mga karagdagang detalye kung papaano mag-push sa remote na mga server.

[[_inspecting_remote]]
==== Inspecting a Remote
==== Pagsusuri sa Remote

If you want to see more information about a particular remote, you can use the `git remote show <remote>` command.(((git commands, remote)))
If you run this command with a particular shortname, such as `origin`, you get something like this:
Kung gusto mong makakita pa ng maraming impormasyon tungkol sa partikular na remote, maaari mong gamitin ang `git remote show <remote>` na utos.(((git commands, remote))) Kung papatakbuhin mo ang utos na ito na may isang partikular na alyas, tulad ng `origin`, makakuha ka ng ganito:

[source,console]
----
Expand All @@ -166,12 +158,9 @@ $ git remote show origin
master pushes to master (up to date)
----

It lists the URL for the remote repository as well as the tracking branch information.
The command helpfully tells you that if you're on the master branch and you run `git pull`, it will automatically merge in the master branch on the remote after it fetches all the remote references.
It also lists all the remote references it has pulled down.
Naglilista ito ng URL para sa remote na repositoryo pati na rin ang impormasyon sa pagsubabay ng branch. Nakakatulong ang utos na magsabi sa iyo na kung ikaw ay nasa master na branch at ikaw ay nagpapatakbo ng `git pull`, awtomatiko itong i-merge sa master na branch na nasa iyong remote pagkatapos nitong makuha ang lahat ng remote na mga reperensiya. Naglilista din ito sa lahat ng remote na mga reperensiya na nakuha nito pababa.

That is a simple example you're likely to encounter.
When you're using Git more heavily, however, you may see much more information from `git remote show`:
Iyan ay isang simpleng halimbawa na malamang ay matatagpuan mo. Kapag mas madalas ang paggamit mo sa Git, gayunman, maaari kang makakita ng mas maraming impormasyon mula sa `git remote show`:

[source,console]
----
Expand All @@ -197,13 +186,12 @@ $ git remote show origin
master pushes to master (up to date)
----

This command shows which branch is automatically pushed to when you run `git push` while on certain branches.
It also shows you which remote branches on the server you don't yet have, which remote branches you have that have been removed from the server, and multiple local branches that are able to merge automatically with their remote-tracking branch when you run `git pull`.
Ang utos na ito ay nagpapakita kung aling branch ang awtomatikong na-push kapag pinatakbo mo ang `git push` habang nasa ibang branch ka. Ito rin ay nagpapakita sa iyo kung aling remote na mga branch ang nasa server na wala ka pa, kung aling mga remote na branch na meron ka pa na inalis mo na sa server, at maraming lokal na mga branch na awtomatikong mai-merge sa kanilang remote-tracking na branch kapag nagpatakbo ka ng `git pull`.

==== Renaming and Removing Remotes
==== Pagpapalit ng pangalan at Pagtatangal ng mga Remote

You can run `git remote rename` to change a remote's shortname.(((git commands, remote)))
For instance, if you want to rename `pb` to `paul`, you can do so with `git remote rename`:
Maaari kang magpatakbo ng `git remote rename` upang baguhin ang alyas ng isang remote.(((git commands, remote)))
Halimbawa, kung ikaw ay gustong magbago ng pangalan ng `pb` sa `paul`, maaari mo itong gawin gamit ang `git remote rename`:

[source,console]
----
Expand All @@ -213,10 +201,9 @@ origin
paul
----

It's worth mentioning that this changes all your remote-tracking branch names, too.
What used to be referenced at `pb/master` is now at `paul/master`.
Ito ay mahalagang banggitin na ito ay nagbabago rin sa lahat ng iyong remote-tracking na mga pangalan ng branch. Ang dating ginamit na `pb/master` ay ngayon ay nasa `paul/master` na.

If you want to remove a remote for some reason -- you've moved the server or are no longer using a particular mirror, or perhaps a contributor isn't contributing anymore -- you can either use `git remote remove` or `git remote rm`:
Kung gusto mong tanggalin ang remote para sa kahit anong rason -- inilipat mo ang server o hindi na ginagamit ang isang partikular na mirror, o marahil ang isang umaambag ay hindi na mag-aambag muli -- maaari mong gamitin ang `git remote remove` o `git remote rm`:

[source,console]
----
Expand All @@ -225,4 +212,4 @@ $ git remote
origin
----

Once you delete the reference to a remote this way, all remote-tracking branches and configuration settings associated with that remote are also deleted.
Kapag natanggal mo na ang reperensiya sa isang remote sa ganitong paraan, lahat ng remote-tracking na mga branch at mga configuration setting na may kaugnayan sa remote ay tinanggal din.
Loading